9#include <framework/core/ModuleStatistics.h>
16 for (
auto resource : {
"time",
"memory"}) {
17 for (
auto type : {
"init",
"begin_run",
"event",
"end_run",
"term",
"total"}) {
18 output <<
"," << resource <<
" " << type;
20 output <<
"," << resource <<
" mean" <<
"," << resource <<
" stddev";
value_type getMean(int i) const
Return the mean for parameter i.
value_type getSum(int i) const
Return the weighted sum values for parameter i.
void csv(std::ostream &output) const
write data to the given stream in csv format
EStatisticCounters
Enum to define all counter types.
@ c_Init
Counting time/calls in initialize()
@ c_Event
Counting time/calls in event()
@ c_Total
Sum of the above.
CalcMeanCov< 2, value_type > m_stats[c_Total+1]
array with mean/covariance for all counters
void csv_header(std::ostream &output) const
write csv header to the given stream
std::string m_name
name of module
Abstract base class for different kinds of events.