June 30, 2016
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?

July 01, 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.