Process Information

Cym13 cpicard at
Sat Feb 23 22:32:18 UTC 2019

On Saturday, 23 February 2019 at 20:49:49 UTC, r-const-dev wrote:
> Is there a way to get information about the current process?
> Memory usage, CPU usage, PID.

The PID is easy, from std.process it's a standard function call 

I don't think there is anything in phobos about memory or cpu 
usage. If you're on GNU/Linux you can probe /proc/self/stat and 
/proc/self/status to get that information, I don't know about 

More information about the Digitalmars-d-learn mailing list