On Thu, 3 Nov 2011 06:49:36 +0100 timothy adigun <2teezp...@gmail.com> wrote:
> Hi a b, > > a b <testa...@gmail.com> wrote: > > > Hi all, > > > > i need to track down how much time each function is taking and anlyze if > > threads can help > > > > do we have any such function?? > > > > **You can use ** use Benchmark qw(:all) **. > From your CLI you can do: perldoc benchmark, > or if you not like reading from the command Line Interface, you can do: > perldoc -oHTML -dbenchmark.html benchmark, > then you have your perldoc benchmark in html format then read how to use it -- > In addition, see: http://search.cpan.org/dist/Devel-NYTProf/ Which is a sophisticated profiler for Perl. Other than that, threads may not be the answer due to the way they are implemented in Perl. Process forking or async IO may be better: http://perl-begin.org/uses/multitasking/ Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ "The Human Hacking Field Guide" - http://shlom.in/hhfg Comedy is simply a funny way of being serious. — http://en.wikiquote.org/wiki/Peter_Ustinov Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/