Home > Archive > PERL Miscellaneous > March 2008 > Capturing CPU and other execution Stats
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Capturing CPU and other execution Stats
|
|
| pgodfrin 2008-03-28, 7:16 pm |
| Greetings,
Is there a way to capture runtime stats? I like to report stuff at the
end of my run, including how many CPU seconds and Elapsed seconds.
I've already used Time:HiRes clock(), but I'm looking for some more
granularity. Eventually I'll be setting up some simulations and I'd
like to see what kind of stats I can get out of my programs.
Any thoughts?
thanks,
pg
| |
| Ben Morrow 2008-03-28, 7:16 pm |
|
Quoth pgodfrin <pgodfrin@gmail.com>:
> Greetings,
>
> Is there a way to capture runtime stats? I like to report stuff at the
> end of my run, including how many CPU seconds and Elapsed seconds.
> I've already used Time:HiRes clock(), but I'm looking for some more
> granularity. Eventually I'll be setting up some simulations and I'd
> like to see what kind of stats I can get out of my programs.
The canonical answer to this is BSD::Resource, assuming your system
supports it.
Ben
| |
| pgodfrin 2008-03-28, 7:16 pm |
| On Mar 28, 12:11 pm, Ben Morrow <b...@morrow.me.uk> wrote:
> Quoth pgodfrin <pgodf...@gmail.com>:
>
>
>
> The canonical answer to this is BSD::Resource, assuming your system
> supports it.
>
> Ben
Thanks Ben...
pg
p.s. How are you?
| |
| pgodfrin 2008-03-28, 7:16 pm |
| On Mar 28, 12:42 pm, pgodfrin <pgodf...@gmail.com> wrote:
> On Mar 28, 12:11 pm, Ben Morrow <b...@morrow.me.uk> wrote:
>
>
>
>
>
>
> Thanks Ben...
> pg
>
> p.s. How are you?
worked like a charm!
pg
|
|
|
|
|