BenchmarkListener class Simple event/run listener getting memory/proc statistics on callback. More...
Public Member Functions | |
BenchmarkListener (const BenchmarkListener &) | |
BenchmarkListener & | operator= (const BenchmarkListener &) |
BenchmarkListener (const std::string &fname) | |
Constructor. | |
~BenchmarkListener () | |
Destructor. | |
void | processEvent (EVENT::LCEvent *evt) |
Extract and fill benchmark variables. | |
void | getVariables (EVENT::LCEvent *event) |
Extract benchmark variables. | |
void | write () |
Write benchmarks to ROOT file. |
BenchmarkListener class Simple event/run listener getting memory/proc statistics on callback.
BenchmarkListener::BenchmarkListener | ( | const std::string & | fname | ) | [inline] |
Constructor.
fname | the ROOT output file with statistics |
void BenchmarkListener::getVariables | ( | EVENT::LCEvent * | event | ) | [inline] |
void BenchmarkListener::processEvent | ( | EVENT::LCEvent * | evt | ) | [inline, virtual] |
Extract and fill benchmark variables.
evt | the event to process |
Implements IO::LCEventListener.
References getVariables().