LLVM 18.0.0git
|
#include "llvm/ADT/Statistic.h"
Public Member Functions | |
constexpr | TrackingStatistic (const char *DebugType, const char *Name, const char *Desc) |
const char * | getDebugType () const |
const char * | getName () const |
const char * | getDesc () const |
uint64_t | getValue () const |
operator uint64_t () const | |
const TrackingStatistic & | operator= (uint64_t Val) |
const TrackingStatistic & | operator++ () |
uint64_t | operator++ (int) |
const TrackingStatistic & | operator-- () |
uint64_t | operator-- (int) |
const TrackingStatistic & | operator+= (uint64_t V) |
const TrackingStatistic & | operator-= (uint64_t V) |
void | updateMax (uint64_t V) |
Public Attributes | |
const char *const | DebugType |
const char *const | Name |
const char *const | Desc |
std::atomic< uint64_t > | Value |
std::atomic< bool > | Initialized |
Protected Member Functions | |
TrackingStatistic & | init () |
void | RegisterStatistic () |
RegisterStatistic - The first time a statistic is bumped, this method is called. | |
Definition at line 50 of file Statistic.h.
|
inlineconstexpr |
Definition at line 59 of file Statistic.h.
Definition at line 64 of file Statistic.h.
References DebugType.
Definition at line 66 of file Statistic.h.
References Desc.
Definition at line 65 of file Statistic.h.
References Name.
|
inline |
Definition at line 68 of file Statistic.h.
Referenced by operator uint64_t().
|
inlineprotected |
Definition at line 123 of file Statistic.h.
References Initialized, and RegisterStatistic().
Referenced by operator++(), operator+=(), operator--(), operator-=(), operator=(), and updateMax().
|
inline |
Definition at line 71 of file Statistic.h.
References getValue().
|
inline |
Definition at line 78 of file Statistic.h.
References init().
|
inline |
Definition at line 83 of file Statistic.h.
References init().
|
inline |
Definition at line 98 of file Statistic.h.
References init().
|
inline |
Definition at line 88 of file Statistic.h.
References init().
|
inline |
Definition at line 93 of file Statistic.h.
References init().
|
inline |
Definition at line 105 of file Statistic.h.
References init().
|
inline |
Definition at line 73 of file Statistic.h.
References init().
|
protected |
RegisterStatistic - The first time a statistic is bumped, this method is called.
Definition at line 98 of file Statistic.cpp.
References Enabled, EnableStats, Initialized, StatInfo, and StatLock.
Referenced by init().
|
inline |
Definition at line 112 of file Statistic.h.
References init().
Definition at line 52 of file Statistic.h.
Referenced by getDebugType().
Definition at line 54 of file Statistic.h.
Referenced by getDesc().
std::atomic<bool> llvm::TrackingStatistic::Initialized |
Definition at line 57 of file Statistic.h.
Referenced by init(), and RegisterStatistic().
Definition at line 53 of file Statistic.h.
Referenced by getName().
std::atomic<uint64_t> llvm::TrackingStatistic::Value |
Definition at line 56 of file Statistic.h.