Martin Kutter > Devel-WxProf > wxprofile

Download:
Devel-WxProf-0.0.1.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

wxprofile - Graphical profile data analyzer

SYNOPSIS

 @> perl -d:WxProf myscript.pl
 @> wxprofile
 @> wxprofile PATH/TO/PROFILE/tmon.out

 # to use Devel::DProf for collecting data
 @> perl -d:DProf myscript.pl
 @> wxprofile tmon.out

 # or use Devel::Profiler for collecting data...
 @> perl "-MDevel::Profiler hz => 100000" myscript.pl
 @> wxprofile tmon.out

DESCRIPTION ^

For collecting profile data see Devel::WxProf.

wxprofile is a graphical profile data analyzer for perl.

It supports the following profile formats:

Hints on interpreting profile data

wxprofile reports inclusive times. This does not mean, the sub with the highest value is slowest - it probably just does most of the work.

wxprofile always displays wallclock ticks as profile data. The actual values are dependent on the profile format and the resolution of your system's clock.

Wallclock profilers use the so-called stopwatch approach. Whether this is useful or not is highly dependent on the application and the environment: Stopwatch results are probably correct on a single user system with low load, profiling a non-interactive application. For all other environments and applications, stopwatch results have to be used with care.

Hints on collecting profile data

POSIX::clock() resolution - which is used by most profilers, like Devel::DProf - provide 1/100s resolution on most systems. This is far from being useful for profiling single runs. Devel::WxProf collects profile data with higher resolution - at the cost of accuracy.

Devel::Profiler can be configured to use higher resolution as well, by passing a hz value as import flag:

 perl "-MDevel::Profiler hz => 10000" myscript.pl

All perl profilers have their strong and weak points. Here's a quick comparison:

BUGS AND LIMITATIONS ^

Many.

See Devel::WxProf for more information

LICENSE AND COPYRIGHT ^

Copyright 2008 Martin Kutter.

This program is free software. You may distribute/modify it under the same terms as perl itself

AUTHOR ^

Martin Kutter <martin.kutter fen-net.de>

REPOSITORY INFORMATION ^

 $Rev: 583 $
 $LastChangedBy: kutterma $
 $Id: $
 $HeadURL: $
syntax highlighting: