Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

How do I find out how much CPU a process is using?

by strredwolf (Chaplain)
on Jan 30, 2001 at 08:41 UTC ( #55181=perlquestion: print w/replies, xml ) Need Help??

strredwolf has asked for the wisdom of the Perl Monks concerning the following question:

TSIA. Somehow the wsproxy (here) starts grabbing CPU like it's no tomorrow. I'd like it to autodetect that and kill itself (maybe giving some diagnostics as to *where* it's buzy-looping).

Originally posted as a Categorized Question.

  • Comment on How do I find out how much CPU a process is using?

Replies are listed 'Best First'.
Re: How do I find out how much CPU a process is using?
by jeroenes (Priest) on Jan 30, 2001 at 21:22 UTC
Re: How do I find out how much CPU a process is using?
by Gloom (Monk) on Jan 30, 2001 at 21:16 UTC
    You should take a look to the BSD::Resource module ( focus on getrusage to now how much a process consume cpu time )

    Hope this will help you in your quest of wisdom

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://55181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2021-04-19 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?