@@ -19,7 +19,7 @@ namespace bpo = boost::program_options;
1919using namespace std ;
2020using namespace std ::chrono;
2121using namespace AliceO2 ::Configuration;
22- using namespace AliceO2 ::Monitoring ;
22+ using namespace o2 ::monitoring ;
2323
2424/*
2525 * Runner
@@ -129,7 +129,7 @@ void TaskDevice::Run()
129129 double current = timer.getTime ();
130130 int objectsPublished = (mTotalNumberObjectsPublished -lastNumberObjects);
131131 lastNumberObjects = mTotalNumberObjectsPublished ;
132- mCollector ->send (objectsPublished/current, " QC_task_Rate_objects_published_per_10_seconds" );
132+ mCollector ->send ({ objectsPublished/current, " QC_task_Rate_objects_published_per_10_seconds" } );
133133 timer.increment ();
134134 }
135135 }
@@ -163,23 +163,23 @@ void TaskDevice::monitorCycle()
163163 double durationCycle = timer.getTime ();
164164 timer.reset ();
165165 double durationPublication = timer.getTime ();
166- mCollector ->send (numberBlocks, " QC_task_Numberofblocks_in_cycle" );
167- mCollector ->send (durationCycle, " QC_task_Module_cycle_duration" );
168- mCollector ->send (durationPublication, " QC_task_Publication_duration" );
169- mCollector ->send ((int ) numberObjectsPublished,
170- " QC_task_Number_objects_published_in_cycle" ); // cast due to Monitoring accepting only int
166+ mCollector ->send ({ numberBlocks, " QC_task_Numberofblocks_in_cycle" } );
167+ mCollector ->send ({ durationCycle, " QC_task_Module_cycle_duration" } );
168+ mCollector ->send ({ durationPublication, " QC_task_Publication_duration" } );
169+ mCollector ->send ({ (int ) numberObjectsPublished,
170+ " QC_task_Number_objects_published_in_cycle" } ); // cast due to Monitoring accepting only int
171171 double rate = numberObjectsPublished / (durationCycle + durationPublication);
172- mCollector ->send (rate, " QC_task_Rate_objects_published_per_second" );
172+ mCollector ->send ({ rate, " QC_task_Rate_objects_published_per_second" } );
173173 mTotalNumberObjectsPublished += numberObjectsPublished;
174174 // std::vector<std::string> pidStatus = mMonitor->getPIDStatus(::getpid());
175175 // pcpus(std::stod(pidStatus[3]));
176176 // pmems(std::stod(pidStatus[4]));
177177 double whole_run_rate = mTotalNumberObjectsPublished / timerTotalDurationActivity.getTime ();
178- mCollector ->send (mTotalNumberObjectsPublished , " QC_task_Total_objects_published_whole_run" );
179- mCollector ->send (timerTotalDurationActivity.getTime (), " QC_task_Total_duration_activity_whole_run" );
180- mCollector ->send (whole_run_rate, " QC_task_Rate_objects_published_per_second_whole_run" );
181- // mCollector->send(std::stod(pidStatus[3]), "QC_task_Mean_pcpu_whole_run");
182- mCollector ->send (ba::mean (pmems), " QC_task_Mean_pmem_whole_run" );
178+ mCollector ->send ({ mTotalNumberObjectsPublished , " QC_task_Total_objects_published_whole_run" } );
179+ mCollector ->send ({ timerTotalDurationActivity.getTime (), " QC_task_Total_duration_activity_whole_run" } );
180+ mCollector ->send ({ whole_run_rate, " QC_task_Rate_objects_published_per_second_whole_run" } );
181+ // mCollector->send({ std::stod(pidStatus[3]), "QC_task_Mean_pcpu_whole_run"} );
182+ mCollector ->send ({ ba::mean (pmems), " QC_task_Mean_pmem_whole_run" } );
183183}
184184
185185unsigned long TaskDevice::publish ()
@@ -228,9 +228,9 @@ void TaskDevice::endOfActivity()
228228 mTask ->endOfActivity (activity);
229229
230230 double rate = mTotalNumberObjectsPublished / timerTotalDurationActivity.getTime ();
231- mCollector ->send (rate, " QC_task_Rate_objects_published_per_second_whole_run" );
232- mCollector ->send (ba::mean (pcpus), " QC_task_Mean_pcpu_whole_run" );
233- mCollector ->send (ba::mean (pmems), " QC_task_Mean_pmem_whole_run" );
231+ mCollector ->send ({ rate, " QC_task_Rate_objects_published_per_second_whole_run" } );
232+ mCollector ->send ({ ba::mean (pcpus), " QC_task_Mean_pcpu_whole_run" } );
233+ mCollector ->send ({ ba::mean (pmems), " QC_task_Mean_pmem_whole_run" } );
234234}
235235
236236void TaskDevice::sendToInformationService (string objectsListString)
0 commit comments