Author: tim.bunce
Date: Tue Oct 21 15:59:32 2008
New Revision: 531
Modified:
trunk/Changes
trunk/HACKING
trunk/bin/nytprofhtml
Log:
Tidy up and expand Changes.
Add -open option to nytprofhtml
Add note to HACKING re another issue re sub caller locations in loops.
Modified: trunk/Changes
==============================================================================
--- trunk/Changes (original)
+++ trunk/Changes Tue Oct 21 15:59:32 2008
@@ -6,34 +6,42 @@
=head2 Changes in Devel::NYTProf 2.06
+Core:
+
NOTE: The file format has changed. Files from 2.04 and 2.05
can still be read by this version.
Now builds on Windows, with thanks to Jan Dubois!
- Subroutine calls made from within string evals (and even
- string evals within string evals etc) are now shown
- in reports.
+ Removed use of vfscanf() to improve portability to Windows
+ and old unix systems, thanks to Jan Dubois.
- XS subs (xsubs) are now automatically associated with a source
- file that defines normal subs in the same package.
- Callers and timing information for xsubs are now shown at the
- bottom of the corresponding source file.
- References to xsubs in reports now include a working link.
+ The profiler takes more care to avoid changing $!.
Subroutine inclusive time no longer counts time
spent recursed into the same subroutine. That time is
now recorded separately, along with the max recursion depth.
- The profiler takes more care to avoid changing $!.
+Reports:
+
+ Subroutine calls made within string evals are now shown in reports.
+ Subroutine caller details now includes calls from within string evals.
+
+ XS subs (xsubs) are now automatically associated with a source
+ file that defines normal subs in the same package.
+ Callers and timing information for xsubs are now shown at the
+ bottom of the corresponding source file.
+ References to xsubs in reports now include a working link
+ if the xsub is in a package that contains perl code.
The html global subroutine index pages no longer list subs that
were never called.
+
Exclusive and Inclusive time column positions have been switched
to be consistent with how the times are presented elsewhere.
- Removed use of vfscanf() to improve portability to Windows
- and old unix systems, thanks to Jan Dubois.
+ nytprofhtml includes a -open option to open the generated html
+ (requires an external 'open' command)
=head2 Changes in Devel::NYTProf 2.05 (svn r498) 8th Oct 2008
Modified: trunk/HACKING
==============================================================================
--- trunk/HACKING (original)
+++ trunk/HACKING Tue Oct 21 15:59:32 2008
@@ -301,3 +301,9 @@
Bug or limitation?: sub calls in a continue { ... } block of a while () get
associated with the 'next;' within the loop.
+Also, test sub caller location for
+ while ( foo() ) { # all calls to foo should be from here
+ ...
+ ... # no calls to foo() should appear here
+ }
+
Modified: trunk/bin/nytprofhtml
==============================================================================
--- trunk/bin/nytprofhtml (original)
+++ trunk/bin/nytprofhtml Tue Oct 21 15:59:32 2008
@@ -40,7 +40,7 @@
file => 'nytprof.out',
out => 'nytprof',
);
-GetOptions(\%opt, qw/file|f=s delete|d out|o=s lib|l=s help|h/) or exit 1;
+GetOptions(\%opt, qw/file|f=s delete|d out|o=s lib|l=s help|h open/) or
exit 1;
if (defined($opt{help})) {
&usage;
@@ -365,6 +365,13 @@
output_js_files($reporter);
+if ($opt{open}) {
+ # only useful on systems with an 'open' command
+ # XXX could get fancy and look for firefox -remote command etc
+ system("open", "$opt{out}/index.html");
+}
+
+exit 0;
#
# SUBROUTINES
--~--~---------~--~----~------------~-------~--~----~
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]
-~----------~----~----~----~------~----~------~--~---