in reply to Checking system cpu load when forking?
Checking CPU load for a process (and all other system counters) from Perl is done with Win32::Perflib . Some examples are available around the monastery (perflib is not particulary easy) .
Forking should be done with Win32::Job . This even gives you a status() method that has access to the accumulated time of the process, in kernel and user mode, which you could use to assess your processus CPU consommation (like buy doing a delta between polling times).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking system cpu load when forking?
by mattr (Curate) on Nov 09, 2005 at 13:31 UTC | |
by BrowserUk (Patriarch) on Nov 10, 2005 at 13:22 UTC | |
by Anonymous Monk on Nov 10, 2005 at 09:55 UTC |