Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RNTupleMetrics Class Reference

A collection of Counter objects with a name, a unit, and a description.

The class owns the counters.

Definition at line 287 of file RNTupleMetrics.hxx.

Public Member Functions

 RNTupleMetrics (const RNTupleMetrics &other)=delete
 RNTupleMetrics (const std::string &name)
 RNTupleMetrics (RNTupleMetrics &&other)=default
 ~RNTupleMetrics ()=default
void Enable ()
const RNTuplePerfCounter * GetCounter (std::string_view name) const
 Searches this object and all the observed sub metrics.
const RNTuplePerfCounter * GetLocalCounter (std::string_view name) const
 Searches counters registered in this object only. Returns nullptr if name is not found.
bool IsEnabled () const
template<typename CounterPtrT, class... Args>
CounterPtrT MakeCounter (const std::string &name, Args &&... args)
void ObserveMetrics (RNTupleMetrics &observee)
RNTupleMetricsoperator= (const RNTupleMetrics &other)=delete
RNTupleMetricsoperator= (RNTupleMetrics &&other)=default
void Print (std::ostream &output, const std::string &prefix="") const

Private Member Functions

bool Contains (const std::string &name) const

Private Attributes

std::vector< std::unique_ptr< RNTuplePerfCounter > > fCounters
bool fIsEnabled = false
std::string fName
std::vector< RNTupleMetrics * > fObservedMetrics

Static Private Attributes

static constexpr char kNamespaceSeperator = '.'
 Symbol to split metrics name from counter / sub metrics name.

#include <ROOT/RNTupleMetrics.hxx>

Constructor & Destructor Documentation

◆ RNTupleMetrics() [1/3]

ROOT::Experimental::Detail::RNTupleMetrics::RNTupleMetrics ( const std::string & name)
inlineexplicit

Definition at line 300 of file RNTupleMetrics.hxx.

◆ RNTupleMetrics() [2/3]

◆ RNTupleMetrics() [3/3]

◆ ~RNTupleMetrics()

Member Function Documentation

◆ Contains()

bool ROOT::Experimental::Detail::RNTupleMetrics::Contains ( const std::string & name) const
private

Definition at line 30 of file RNTupleMetrics.cxx.

◆ Enable()

◆ GetCounter()

Searches this object and all the observed sub metrics.

name must start with the prefix used by this RNTupleMetrics instance. Returns nullptr if name is not found.

Definition at line 46 of file RNTupleMetrics.cxx.

◆ GetLocalCounter()

Searches counters registered in this object only. Returns nullptr if name is not found.

Definition at line 36 of file RNTupleMetrics.cxx.

◆ IsEnabled()

◆ MakeCounter()

template<typename CounterPtrT, class... Args>
CounterPtrT ROOT::Experimental::Detail::RNTupleMetrics::MakeCounter ( const std::string & name,
Args &&... args )
inline

Definition at line 309 of file RNTupleMetrics.hxx.

◆ ObserveMetrics()

◆ operator=() [1/2]

RNTupleMetrics & ROOT::Experimental::Detail::RNTupleMetrics::operator= ( const RNTupleMetrics & other)
delete

◆ operator=() [2/2]

RNTupleMetrics & ROOT::Experimental::Detail::RNTupleMetrics::operator= ( RNTupleMetrics && other)
default

◆ Print()

void ROOT::Experimental::Detail::RNTupleMetrics::Print ( std::ostream & output,
const std::string & prefix = "" ) const

Definition at line 65 of file RNTupleMetrics.cxx.

Member Data Documentation

◆ fCounters

std::vector<std::unique_ptr<RNTuplePerfCounter> > ROOT::Experimental::Detail::RNTupleMetrics::fCounters
private

Definition at line 292 of file RNTupleMetrics.hxx.

◆ fIsEnabled

◆ fName

Definition at line 294 of file RNTupleMetrics.hxx.

◆ fObservedMetrics

◆ kNamespaceSeperator

Symbol to split metrics name from counter / sub metrics name.

Definition at line 290 of file RNTupleMetrics.hxx.


The documentation for this class was generated from the following files: