A collection of Counter objects with a name, a unit, and a description.
The class owns the counters; on registration of a new
Definition at line 236 of file RNTupleMetrics.hxx.
Public Member Functions | |
RNTupleMetrics (const RNTupleMetrics &other)=delete | |
RNTupleMetrics (const std::string &name) | |
~RNTupleMetrics ()=default | |
void | Enable () |
bool | IsEnabled () const |
template<typename CounterPtrT > | |
CounterPtrT | MakeCounter (const std::string &name, const std::string &unit, const std::string &desc) |
void | ObserveMetrics (RNTupleMetrics &observee) |
RNTupleMetrics & | operator= (const RNTupleMetrics &other)=delete |
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. More... | |
#include <ROOT/RNTupleMetrics.hxx>
|
inlineexplicit |
Definition at line 249 of file RNTupleMetrics.hxx.
|
delete |
|
default |
|
private |
Definition at line 29 of file RNTupleMetrics.cxx.
void ROOT::Experimental::Detail::RNTupleMetrics::Enable | ( | ) |
Definition at line 53 of file RNTupleMetrics.cxx.
|
inline |
Definition at line 268 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 255 of file RNTupleMetrics.hxx.
void ROOT::Experimental::Detail::RNTupleMetrics::ObserveMetrics | ( | RNTupleMetrics & | observee | ) |
Definition at line 62 of file RNTupleMetrics.cxx.
|
delete |
void ROOT::Experimental::Detail::RNTupleMetrics::Print | ( | std::ostream & | output, |
const std::string & | prefix = "" |
||
) | const |
Definition at line 38 of file RNTupleMetrics.cxx.
|
private |
Definition at line 241 of file RNTupleMetrics.hxx.
|
private |
Definition at line 244 of file RNTupleMetrics.hxx.
|
private |
Definition at line 243 of file RNTupleMetrics.hxx.
|
private |
Definition at line 242 of file RNTupleMetrics.hxx.
|
staticconstexprprivate |
Symbol to split metrics name from counter / sub metrics name.
Definition at line 239 of file RNTupleMetrics.hxx.