A thread-safe integral performance counter.
Definition at line 111 of file RNTupleMetrics.hxx.
Public Member Functions | |
| RNTupleAtomicCounter (const std::string &name, const std::string &unit, const std::string &desc) | |
| R__ALWAYS_INLINE void | Add (int64_t delta) |
| R__ALWAYS_INLINE void | Dec () |
| void | Enable () |
| const std::string & | GetDescription () const |
| const std::string & | GetName () const |
| const std::string & | GetUnit () const |
| R__ALWAYS_INLINE int64_t | GetValue () const |
| std::int64_t | GetValueAsInt () const override |
| std::string | GetValueAsString () const override |
| R__ALWAYS_INLINE void | Inc () |
| bool | IsEnabled () const |
| R__ALWAYS_INLINE void | SetValue (int64_t val) |
| std::string | ToString () const |
| R__ALWAYS_INLINE int64_t | XAdd (int64_t delta) |
Private Attributes | |
| std::atomic< std::int64_t > | fCounter {0} |
| 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. | |
|
inline |
Definition at line 116 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 132 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 126 of file RNTupleMetrics.hxx.
|
inlineinherited |
Definition at line 65 of file RNTupleMetrics.hxx.
|
inlineinherited |
Definition at line 68 of file RNTupleMetrics.hxx.
|
inlineinherited |
Definition at line 67 of file RNTupleMetrics.hxx.
|
inlineinherited |
Definition at line 69 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 145 of file RNTupleMetrics.hxx.
|
inlineoverridevirtual |
Implements ROOT::Experimental::Detail::RNTuplePerfCounter.
Reimplemented in ROOT::Experimental::Detail::RNTupleTickCounter< ROOT::Experimental::Detail::RNTupleAtomicCounter >.
Definition at line 157 of file RNTupleMetrics.hxx.
|
inlineoverridevirtual |
Implements ROOT::Experimental::Detail::RNTuplePerfCounter.
Reimplemented in ROOT::Experimental::Detail::RNTupleTickCounter< ROOT::Experimental::Detail::RNTupleAtomicCounter >.
Definition at line 158 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 120 of file RNTupleMetrics.hxx.
|
inlineinherited |
Definition at line 66 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 152 of file RNTupleMetrics.hxx.
|
inherited |
Definition at line 25 of file RNTupleMetrics.cxx.
|
inline |
Definition at line 138 of file RNTupleMetrics.hxx.
|
private |
Definition at line 113 of file RNTupleMetrics.hxx.
|
privateinherited |
Definition at line 58 of file RNTupleMetrics.hxx.
|
privateinherited |
Definition at line 59 of file RNTupleMetrics.hxx.
|
privateinherited |
Definition at line 56 of file RNTupleMetrics.hxx.
|
privateinherited |
Definition at line 57 of file RNTupleMetrics.hxx.
|
staticconstexprprivateinherited |
Symbol to split name, unit, description, and value when printing.
Definition at line 54 of file RNTupleMetrics.hxx.