Get program stats at run time
FreeSlave via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 1 14:40:43 PDT 2016
On Thursday, 30 June 2016 at 21:56:57 UTC, Special opOps wrote:
> How can I get the program stats at run time such as minimum and
> maximum amount of memory and cpu used, cpu architecture, os,
> etc?
OS is compile-time constant.
http://dlang.org/phobos/std_system.html#.os
Or do you look for something like detecting that windows
application is ran actually in wine on some other operating
system?
For memory and cpu usage detecting I wrote
https://github.com/MyLittleRobo/resusage a while ago. Currently
works only on Linux and Windows though.
More information about the Digitalmars-d-learn
mailing list