Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Memory and CPU utilization scripts without any installations of modules

by soonix (Canon)
on Aug 22, 2018 at 15:21 UTC ( [id://1220845]=note: print w/replies, xml ) Need Help??


in reply to Memory and CPU utilization scripts without any installations of modules

You mentioned Determining memory usage of a process..., which lists a second answer (for Linux). This would work without installing additional modules. You simply have to find out wether your ps has different options.

I'm on Windows, and based on Re^7: memory use array vs ref to array (or more probably Re: time and mem usage of pgm by the same author) I have scripts with
END { system qq(tasklist /v /fo LIST /fi "PID eq $$") }
and
END { system qq(wmic PROCESS where "processid=$$" get * /FORMAT:LIST) }
Perhaps one of these works for you?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-03-29 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found