Revision: 1300
Author: [email protected]
Date: Wed Jun 16 15:18:00 2010
Log: Fix typo and tweak docs re performance.
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1300
Modified:
/trunk/lib/Devel/NYTProf.pm
=======================================
--- /trunk/lib/Devel/NYTProf.pm Thu Jun 10 03:24:38 2010
+++ /trunk/lib/Devel/NYTProf.pm Wed Jun 16 15:18:00 2010
@@ -38,7 +38,7 @@
# DB::sub shouldn't be called, but needs to exist for perl <5.8.7
(<p...@24265)
# Could be called in obscure cases, e.g. if "perl -d" (not -d:NYTProf)
# was used with Devel::NYTProf loaded some other way
-sub sub { die "DB::sub called unexpectly" }
+sub sub { die "DB::sub called unexpectedly" }
sub CLONE { DB::disable_profiler }
@@ -708,7 +708,7 @@
is reduced detail and/or accuracy in reports.
If you don't need statement-level profiling then you can disable it via
L</stmts=0>.
-If you do need it but don't mind loosing block-level timings then set
L</blocks=0>.
+If you do want it but don't mind loosing block-level timings then set
L</blocks=0>.
If you want need still more speed then set L</leave=0> to disable the
adjustments made for statements that 'leave' the current control flow
(doing
this I<will> make timings for some kinds of statements less accurate).
@@ -716,9 +716,14 @@
If you don't need subroutine profiling then you can disable it via
L</subs=0>.
If you do need it but don't need timings for perl opcodes then set
L</slowops=0>.
+Generally speaking, setting blocks=0 and slowops=0 will give you a useful
boost
+with the least loss of detail.
+
Another approach is to only enable NYTProf in the sections of code that
interest you. See L</RUN-TIME CONTROL OF PROFILING> for more details.
+To speed up L<nytprofhtml> try using the --minimal (-m) option.
+
=head1 REPORTS
The L<Devel::NYTProf::Data> module provides a low-level interface for
loading
@@ -731,6 +736,12 @@
Included in the bin directory of this distribution are some scripts which
turn the raw profile data into more useful formats:
+=head2 nytprofhtml
+
+Creates attractive, richly annotated, and fully cross-linked html
+reports (including statistics, source code and color highlighting).
+This is the main report generation tool for NYTProf.
+
=head2 nytprofcsv
Creates comma delimited profile reports. Old and limited.
@@ -740,11 +751,6 @@
Translates a profile into a format that can be loaded into KCachegrind
L<http://kcachegrind.sourceforge.net>
-=head2 nytprofhtml
-
-Creates attractive, richly annotated, and fully cross-linked html
-reports (including statistics, source code and color highlighting).
-
=head2 nytprofmerge
Reads multiple profile data files and writes out a new file containing the
merged profile data.
--
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]