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).
In reply to Re: Checking system cpu load when forking?
by Anonymous Monk
in thread Checking system cpu load when forking?
by mattr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |