www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Get program stats at run time

reply Special opOps <Unknown Unknown.com> writes:
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?
Jun 30 2016
parent FreeSlave <freeslave93 gmail.com> writes:
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. 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.
Jul 01 2016