in reply to Timing a Module Load

After other monks considers (use is a compile time call and eval), consider two others methods to get this times:

1. Use a Perl Code Profiler:

$ perl -d:DProf <script> $ dprofpp # select args
2. Consider use require+import:
*. Eval is a option

--
Marco Antonio
Rio-PM

Replies are listed 'Best First'.
Re^2: Timing a Module Load
by salva (Canon) on Apr 30, 2005 at 15:52 UTC
    Profiling in perl has a big overhead. You can use it to find hot spots on the code, but not to time things.