in reply to printing date on a file
the script will do what it normally does, and while it's doing that, the perl interpreter will be saving tons of trace and timing information to a file in your current directory. After the run is over, you can get a summary that profiles the time spent in each subroutine (i.e. running each system call) by running this utility that comes as part of the Perl distribution:perl -d:DProf your_script.pl
(where "tmon.out" is the name that the debugger's profiling module assigns to the trace file that it creates, as explained in the perldebug man page).dprofpp tmon.out
|
|---|