Cosmetics

Moved string truncate to BaseToolkit, fixed SystemToolkit max memory, clean left panel UI
This commit is contained in:
Bruno
2021-05-01 16:39:01 +02:00
parent 5e0dd60adb
commit 451ff64b6f
7 changed files with 108 additions and 69 deletions

View File

@@ -42,9 +42,6 @@ namespace SystemToolkit
// extract the path of a filename from a full URI (e.g. file:://home/me/toto.mpg -> file:://home/me/)
std::string path_filename(const std::string& path);
// Truncate a full filename to display the right part (e.g. file:://home/me/toto.mpg -> ...ome/me/toto.mpg)
std::string trunc_filename(const std::string& path, int lenght);
// extract the extension of a filename
std::string extension_filename(const std::string& filename);
@@ -69,8 +66,9 @@ namespace SystemToolkit
// try to execute a command
void execute(const std::string& command);
// return memory resident set size used (in bytes)
// return memory used (in bytes)
long memory_usage();
// return maximum memory resident set size used (in bytes)
long memory_max_usage();
}