From f921fe3e35fb4377453e086540b5c321d289e686 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Sat, 21 Mar 2020 21:34:45 +0100 Subject: [PATCH] Add a description of the available metrics --- HLTrigger/Timer/plugins/FastTimerService.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/HLTrigger/Timer/plugins/FastTimerService.cc b/HLTrigger/Timer/plugins/FastTimerService.cc index 7d8fb8a88bde4..c4fcb33a9517b 100644 --- a/HLTrigger/Timer/plugins/FastTimerService.cc +++ b/HLTrigger/Timer/plugins/FastTimerService.cc @@ -1352,6 +1352,13 @@ json FastTimerService::encodeToJSON(edm::ModuleDescription const& module, Resour void FastTimerService::writeSummaryJSON(ResourcesPerJob const& data, std::string const& filename) const { json j; + + // write a description of the resources + j["resources"] = json::array({json{{"time_real", "real time"}}, + json{{"time_thread", "cpu time"}}, + json{{"mem_alloc", "allocated memory"}}, + json{{"mem_free", "deallocated memory"}}}); + // write the resources used by the job j["total"] = encodeToJSON("Job", callgraph_.processDescription(0).name_, data.events, data.total + data.overhead);