Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] CPU use by Perl

Expand Messages
  • merlyn@stonehenge.com
    ... Gilles I put the following in my script and I don t see any result. It ll write to STDERR. You have to look for it. If this is a webserver, that ll be
    Message 1 of 2 , Jan 27, 2007
      >>>>> "Gilles" == Gilles Beauregard <gilles@...> writes:

      >> my @times;
      >> BEGIN { @times = (time, times); }
      >> END {
      >> @times = map { $_ - shift @times } (time, times);
      >> warn sprintf "clock: %d user: %.2g sys: %.2g cuser: %.2g csys: %.2g",
      >> @times;
      >> }
      >> #user = user cpu time
      >> #sys = sys cpu time
      >> #cuser/csys = same thing for all children

      Gilles> I put the following in my script and I don't see any result.

      It'll write to STDERR. You have to look for it. If this is a webserver,
      that'll be in the error log. Otherwise, it should be on the screen, right
      at the end.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.