@@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE(monitorProcessDefaultCount)
5555 countMetrics++;
5656 }
5757 // On linux 11 (without Smaps) and macOS 6
58- BOOST_CHECK (countMetrics == 11 || countMetrics == 6 );
58+ BOOST_CHECK (countMetrics == 14 || countMetrics == 6 );
5959}
6060
6161
@@ -83,13 +83,13 @@ BOOST_AUTO_TEST_CASE(monitorProcessCpuOnly)
8383
8484BOOST_AUTO_TEST_CASE (monitorProcessAll)
8585{
86- std::array<std::string, 14 > names = {" memoryUsagePercentage" , " virtualMemorySize" , " residentSetSize" ,
86+ std::array<std::string, 11 > names = {" memoryUsagePercentage" , " virtualMemorySize" , " residentSetSize" ,
8787 " cpuUsedPercentage" , " involuntaryContextSwitches" , " voluntaryContextSwitches" , " cpuUsedAbsolute" ,
8888 " averageResidentSetSize" , " averageVirtualMemorySize" , " averageCpuUsedPercentage" ,
89- " cpuTimeConsumedByProcess" , " proportionalSetSize " , " memoryPrivateClean " , " memoryPrivateDirty " };
89+ " cpuTimeConsumedByProcess" };
9090 {
9191 auto monitoring = o2::monitoring::MonitoringFactory::Get (" influxdb-stdout://" );
92- monitoring->enableProcessMonitoring (1 , {PmMeasurement::Cpu, PmMeasurement::Smaps, PmMeasurement:: Mem});
92+ monitoring->enableProcessMonitoring (1 , {PmMeasurement::Cpu, PmMeasurement::Mem});
9393 enableRedirect ();
9494 std::this_thread::sleep_for (std::chrono::milliseconds (200 ));
9595 }
@@ -102,7 +102,7 @@ BOOST_AUTO_TEST_CASE(monitorProcessAll)
102102 countMetrics++;
103103 }
104104 // On linux 14 and macOS 6
105- BOOST_CHECK (countMetrics == 14 || countMetrics == 6 );
105+ BOOST_CHECK (countMetrics == 11 || countMetrics == 6 );
106106}
107107
108108BOOST_AUTO_TEST_CASE (monitorProcessMetricName)
0 commit comments