Perl Monk, Perl Meditation | |
PerlMonks |
Re: profiling XS routinesby syphilis (Archbishop) |
on Aug 27, 2009 at 13:02 UTC ( [id://791623]=note: print w/replies, xml ) | Need Help?? |
In the absence of something more sophisticated, I'd be grabbing the clock() values at various points, and using that to work out where the time is being spent. The function is defined in time.h and (double)clock()/CLOCKS_PER_SEC should give you the time in seconds. As I understand it, clock() itself returns the number of cpu cycles that have been run since the program began execution. But, of course, this is perl and there may well be something "more sophisticated". Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|