LLVM 20.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 49 of file Statistic.h.
|
inlineconstexpr |
Definition at line 58 of file Statistic.h.
Definition at line 63 of file Statistic.h.
References DebugType.
Definition at line 65 of file Statistic.h.
References Desc.
Definition at line 64 of file Statistic.h.
References Name.
|
inline |
Definition at line 67 of file Statistic.h.
Referenced by operator uint64_t().
|
inlineprotected |
Definition at line 122 of file Statistic.h.
References Initialized, and RegisterStatistic().
Referenced by operator++(), operator+=(), operator--(), operator-=(), operator=(), and updateMax().
|
inline |
Definition at line 70 of file Statistic.h.
References getValue().
|
inline |
Definition at line 77 of file Statistic.h.
References init().
|
inline |
Definition at line 82 of file Statistic.h.
References init().
|
inline |
Definition at line 97 of file Statistic.h.
References init().
|
inline |
Definition at line 87 of file Statistic.h.
References init().
|
inline |
Definition at line 92 of file Statistic.h.
References init().
|
inline |
Definition at line 104 of file Statistic.h.
References init().
|
inline |
Definition at line 72 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 111 of file Statistic.h.
References init().
Definition at line 51 of file Statistic.h.
Referenced by getDebugType().
Definition at line 53 of file Statistic.h.
Referenced by getDesc().
std::atomic<bool> llvm::TrackingStatistic::Initialized |
Definition at line 56 of file Statistic.h.
Referenced by init(), and RegisterStatistic().
Definition at line 52 of file Statistic.h.
Referenced by getName().
std::atomic<uint64_t> llvm::TrackingStatistic::Value |
Definition at line 55 of file Statistic.h.