Revision: 989 Author: tim.bunce Date: Tue Dec 22 14:12:18 2009 Log: Added recommended perl version info to docs. Removed micro char likely to cause encoding issues
http://code.google.com/p/perl-devel-nytprof/source/detail?r=989 Modified: /trunk/lib/Devel/NYTProf.pm ======================================= --- /trunk/lib/Devel/NYTProf.pm Tue Dec 22 13:37:49 2009 +++ /trunk/lib/Devel/NYTProf.pm Tue Dec 22 14:12:18 2009 @@ -563,6 +563,16 @@ accurate but surprising. In some cases it can appear to be misleading. (Of course, in some cases it may actually be plain wrong. Caveat lector.) +=head2 Perl 5.10.1+ (or else 5.8.9+) are Recommended + +These versions of perl yield much more detailed information about calls to +BEGIN, CHECK, INIT, and END blocks, the code handling tied or overloaded +variables, and callbacks from XS code. + +Perl 5.12 will hopefully also fix an inaccuracy in the timing of the last +statement and the condition clause of some kinds of loops: +L<http://rt.perl.org/rt3/Ticket/Display.html?id=60954> + =head2 Calls from XSUBs and Opcodes Calls record the current filename and line number of the perl code at the time @@ -570,14 +580,14 @@ that originate from C code however, such as an XSUB or an opcode, the filename and line number recorded are still those of the last I<perl> statement executed. -For example, a line that calls an xsub will appear in reports to also have -called any subroutines that the xsub called. This can be construed as a feature. +For example, a line that calls an xsub will appear in reports to also have also +called any subroutines that that xsub called. This can be construed as a feature. As an extreme example, the first time a regular expression that uses character classes is executed on a unicode string you'll find profile data like this: - # spent 544µs within main::be...@4 which was called - # once (544µs+0s) by main::CORE:subst at line 0 + # spent 1ms within main::be...@4 which was called + # once (1ms+0s) by main::CORE:subst at line 0 4 s/ (?: [A-Z] | [\d] )+ (?= [\s] ) //x; # spent 38.8ms making 1 call to main::CORE:subst # spent 25.4ms making 2 calls to utf8::SWASHNEW, avg 12.7ms/call -- You've received this message because you are subscribed to the Devel::NYTProf Development User group. Group hosted at: http://groups.google.com/group/develnytprof-dev Project hosted at: http://perl-devel-nytprof.googlecode.com CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf To post, email: [email protected] To unsubscribe, email: [email protected]
