Implementation of memory usage monitor.

This commit is contained in:
brunoherbelin
2020-07-09 12:22:30 +02:00
parent 3cc63d7c54
commit 69cabd385f
3 changed files with 41 additions and 6 deletions

View File

@@ -50,6 +50,12 @@ 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)
long memory_usage();
// get a string to display memory size with unit KB, MB, GB, TB
std::string byte_to_string(long b);
}
#endif // SYSTEMTOOLKIT_H