A performance counter with a name and a unit, which can be activated on demand.
Derived classes decide on the counter type and implement printing of the value.
Definition at line 46 of file RNTupleMetrics.hxx.
Public Member Functions | |
RNTuplePerfCounter (const std::string &name, const std::string &unit, const std::string &desc) | |
virtual | ~RNTuplePerfCounter () |
void | Enable () |
std::string | GetDescription () const |
std::string | GetName () const |
std::string | GetUnit () const |
bool | IsEnabled () const |
std::string | ToString () const |
virtual std::string | ValueToString () const =0 |
Private Attributes | |
std::string | fDescription |
bool | fIsEnabled = false |
std::string | fName |
std::string | fUnit |
Static Private Attributes | |
static constexpr char | kFieldSeperator = '|' |
Symbol to split name, unit, description, and value when printing. More... | |
#include <ROOT/RNTupleMetrics.hxx>
|
inline |
Definition at line 57 of file RNTupleMetrics.hxx.
|
virtual |
Definition at line 20 of file RNTupleMetrics.cxx.
|
inline |
Definition at line 60 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 63 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 62 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 64 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 61 of file RNTupleMetrics.hxx.
std::string ROOT::Experimental::Detail::RNTuplePerfCounter::ToString | ( | ) | const |
Definition at line 24 of file RNTupleMetrics.cxx.
|
pure virtual |
|
private |
Definition at line 53 of file RNTupleMetrics.hxx.
|
private |
Definition at line 54 of file RNTupleMetrics.hxx.
|
private |
Definition at line 51 of file RNTupleMetrics.hxx.
|
private |
Definition at line 52 of file RNTupleMetrics.hxx.
|
staticconstexprprivate |
Symbol to split name, unit, description, and value when printing.
Definition at line 49 of file RNTupleMetrics.hxx.