Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Profiling your code.

by kyle (Abbot)
on Aug 20, 2007 at 03:26 UTC ( #633699=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -d:DProf foo.pl
    
  2. or download this
    perl -MDevel::Profiler foo.pl
    
  3. or download this
    dprofpp
    
  4. or download this
    main();
    
    ...
    
        return;
    }
    
  5. or download this
    Total Elapsed Time = 1.859881 Seconds
      User+System Time = 1.389881 Seconds
    ...
    %Time ExclSec CumulS #Calls sec/call Csec/c  Name
     98.5   1.370  1.370      1   1.3700 1.3700  main::main
     0.72   0.010  0.010      2   0.0050 0.0050  main::BEGIN
    
  6. or download this
    main();
    
    ...
    
        return;
    }
    
  7. or download this
    Total Elapsed Time = 1.809848 Seconds
      User+System Time = 1.379848 Seconds
    ...
     98.5   1.360  1.360      1   1.3600 1.3600  main::all_the_work
     0.00       -  1.360      1        - 1.3600  main::main
     0.00       -  0.010      2        - 0.0050  main::BEGIN
    
  8. or download this
    main();
    
    ...
    
        return;
    }
    
  9. or download this
    Total Elapsed Time = 6.809867 Seconds
      User+System Time = 1.459867 Seconds
    ...
     0.68   0.010  0.010      2   0.0050 0.0050  main::BEGIN
     0.00       - -0.000      1        -      -  main::do_nothing
     0.00       -  1.430      1        - 1.4300  main::main
    
  10. or download this
    Total Elapsed Time = 6.799829 Seconds
             Real Time = 6.799829 Seconds
    ...
     26.1   1.780  1.780      1   1.7800 1.7800  main::all_the_work
     0.15   0.010  0.020      2   0.0050 0.0100  main::BEGIN
     0.00       -  6.780      1        - 6.7800  main::main
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://633699]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-09-22 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls