diff --git a/MemoryMetric.cpp b/MemoryMetric.cpp index 43bd974..efa77b8 100644 --- a/MemoryMetric.cpp +++ b/MemoryMetric.cpp @@ -29,9 +29,9 @@ MemoryMetric::MemoryMetric(Platform platform, std::shared_ptrsecond; measurement.AddDataPoint(memoryUsageKb); } else { - Measurement measurement("Memory Used KB"); + Measurement measurement("Memory_Used_KB"); measurement.AddDataPoint(memoryUsageKb); mContainerMeasurements.insert(std::make_pair(containerName, measurement)); } @@ -524,7 +524,7 @@ void MemoryMetric::GetBroadcomBmemUsage() if (itr == mBroadcomBmemMeasurements.end()) { // New region - Measurement measurement("Memory Usage (KB)"); + Measurement measurement("Memory_Usage_KB"); measurement.AddDataPoint(usageKb); mBroadcomBmemMeasurements.insert(std::make_pair(std::string(regionName), measurement)); } else { @@ -615,10 +615,10 @@ void MemoryMetric::CalculateFragmentation() } else { std::vector measurements = {}; for (int i = 0; i < (int) freePages.size(); i++) { - Measurement fp("Free Pages"); + Measurement fp("Free_Pages"); fp.AddDataPoint(freePages[i]); - Measurement frag("Fragmentation %"); + Measurement frag("Fragmentation_%"); frag.AddDataPoint(fragmentationPercent[i]); memoryFragmentation fragMeasurement(fp, frag); measurements.emplace_back(fragMeasurement); @@ -721,7 +721,7 @@ void MemoryMetric::GetGpuMemoryUsageBroadcom() measurement.Used.AddDataPoint(virtualMemNumBytes / (long double) 1024.0); } else { Process process(pid); - Measurement used("Memory Usage KB"); + Measurement used("Memory_Usage_KB"); used.AddDataPoint(virtualMemNumBytes / (long double) 1024.0); auto measurement = gpuMeasurement(process, used); @@ -773,7 +773,7 @@ void MemoryMetric::GetGpuMemoryUsageAmlogic() } else { Process process(pid); - Measurement used("Memory Usage KB"); + Measurement used("Memory_Usage_KB"); used.AddDataPoint(gpuBytes / (long double) 1024.0); auto measurement = gpuMeasurement(process, used);