2.1 New Profile
2.2 Session Browser
2.3 Navigating a Session
2.4 Data Mining
#!/usr/bin/perl -w
After pressing Launch, Tuna will run your script until it exits. If there are any problems, they will be presented in a sheet.
Self This indicates the amount of time spent in this function, not including subroutes it called. High values here indicate a function that does a lot of things on its own, or using Perl builtin functions. Total This is the total time for this function and all of its subroutines. Package Describes which code package the function belonged to. Packages are normally known as modules in the Perl world, but there are a few special packages. "main", for instance, is the default package under which functions placed directly in the script are listed. Sub The name of the function or subroutine.
Stats Display Toggles between time, where the actual time values are shown, and percent, which display percent values of the total time. Color By Package Controls whether the call tree is colored by which package the function is included in. Hide Weight See 2.4.
$ perl -d:DProf /home/sites/animanga/scipts/comments.pl
Perl will run the script as it normally would, but also write a file called tmon.out to the current directory. This file can then be transferred to a computer with Tuna and opened either via the File menu's Open command, or just by double-clicking the file in Finder.