improved stats with memory usage (OSX)

This commit is contained in:
brunoherbelin
2020-07-09 19:51:02 +02:00
parent 7f3867521e
commit 38fcca0e78
3 changed files with 58 additions and 20 deletions

View File

@@ -51,8 +51,9 @@ namespace SystemToolkit
// try to open the file with system
void open(const std::string& path);
// (tries to) return maximum resident set size used (in kilobytes)
// return memory resident set size used (in bytes)
long memory_usage();
long memory_max_usage();
// get a string to display memory size with unit KB, MB, GB, TB
std::string byte_to_string(long b);