16 explicit memoryLoad(std::string memInfo =
"/proc/meminfo",
17 std::string memInfoOfProcess =
"/proc/self/status",
18 std::string memInfoOfProcessPrefix =
"/proc/self/"):
20 currentMemoryUsageInKB(0),
21 memInfoFile(
std::move(memInfo)),
22 memInfoOfProcessFile(
std::move(memInfoOfProcess)),
23 memInfoOfProcessPrefixFile(
std::move(memInfoOfProcessPrefix))
53 bool parseMemoryFile();
54 static uint64_t parseProcessMemoryFile(std::string fileToParse);
55 uint64_t totalMemoryInKB;
56 uint64_t currentMemoryUsageInKB;
57 std::string memInfoFile;
58 std::string memInfoOfProcessFile;
59 std::string memInfoOfProcessPrefixFile;
60 std::chrono::time_point<std::chrono::steady_clock> timeStamp;