26 return fName + kFieldSeperator + fUnit + kFieldSeperator + fDescription + kFieldSeperator + ValueToString();
31 for (
const auto &
c : fCounters) {
32 if (
c->GetName() ==
name)
41 output << fName <<
" metrics disabled!" << std::endl;
45 for (
const auto &
c : fCounters) {
46 output << prefix << fName << kNamespaceSeperator <<
c->ToString() << std::endl;
48 for (
const auto c : fObservedMetrics) {
49 c->Print(
output, prefix + fName +
".");
55 for (
auto &
c: fCounters)
58 for (
auto m: fObservedMetrics)
64 fObservedMetrics.push_back(&observee);
A collection of Counter objects with a name, a unit, and a description.
void ObserveMetrics(RNTupleMetrics &observee)
bool Contains(const std::string &name) const
void Print(std::ostream &output, const std::string &prefix="") const
std::string ToString() const
virtual ~RNTuplePerfCounter()
static void output(int code)