Revision: 1404
Author: [email protected]
Date: Tue Nov 30 14:13:02 2010
Log: Document removal of empty statements in 5.13.7+
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1404

Modified:
 /trunk/lib/Devel/NYTProf.pm

=======================================
--- /trunk/lib/Devel/NYTProf.pm Fri Nov 19 08:45:40 2010
+++ /trunk/lib/Devel/NYTProf.pm Tue Nov 30 14:13:02 2010
@@ -355,6 +355,10 @@
 so the profile won't show a statement count for line 2 in your source code
because the C<return> was merged into the C<if> statement on the preceding line.

+Also 'empty' statements like C<1;> are removed entirely. Such statements are +empty because the optimizer has already removed the pointless constant in void +context. It then goes on to remove the now empty statement (in perl >= 5.13.7).
+
 Using the C<optimize=0> option disables the optimizer so you'll get lower
 overall performance but more accurately assigned statement counts.

--
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]

Reply via email to