|
LLVM 24.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 () |
| LLVM_ABI 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.
References DebugType, Desc, Initialized, Name, and Value.
Referenced by init(), operator++(), operator+=(), operator--(), operator-=(), and operator=().
Definition at line 64 of file Statistic.h.
References DebugType.
Referenced by llvm::PrintStatistics(), and llvm::PrintStatisticsJSON().
Definition at line 65 of file Statistic.h.
References Name.
Referenced by llvm::PrintStatisticsJSON().
|
inline |
Definition at line 68 of file Statistic.h.
References uint64_t, and Value.
Referenced by operator uint64_t(), llvm::PrintStatistics(), and llvm::PrintStatisticsJSON().
|
inlineprotected |
Definition at line 123 of file Statistic.h.
References Initialized, RegisterStatistic(), and TrackingStatistic().
Referenced by operator++(), operator++(), 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(), TrackingStatistic(), and Value.
|
inline |
Definition at line 83 of file Statistic.h.
|
inline |
Definition at line 98 of file Statistic.h.
References init(), TrackingStatistic(), uint64_t, V, and Value.
|
inline |
Definition at line 88 of file Statistic.h.
References init(), TrackingStatistic(), and Value.
|
inline |
Definition at line 93 of file Statistic.h.
|
inline |
Definition at line 105 of file Statistic.h.
References init(), TrackingStatistic(), uint64_t, V, and Value.
|
inline |
Definition at line 73 of file Statistic.h.
References init(), TrackingStatistic(), uint64_t, and Value.
|
protected |
RegisterStatistic - The first time a statistic is bumped, this method is called.
Definition at line 98 of file Statistic.cpp.
References llvm::Enabled, EnableStats, Initialized, StatInfo, and StatLock.
Referenced by init().
|
inline |
Definition at line 52 of file Statistic.h.
Referenced by getDebugType(), and TrackingStatistic().
Definition at line 54 of file Statistic.h.
Referenced by getDesc(), and TrackingStatistic().
| std::atomic<bool> llvm::TrackingStatistic::Initialized |
Definition at line 57 of file Statistic.h.
Referenced by init(), RegisterStatistic(), and TrackingStatistic().
Definition at line 53 of file Statistic.h.
Referenced by getName(), and TrackingStatistic().
| std::atomic<uint64_t> llvm::TrackingStatistic::Value |
Definition at line 56 of file Statistic.h.
Referenced by getValue(), operator++(), operator++(), operator+=(), operator--(), operator--(), operator-=(), operator=(), TrackingStatistic(), and updateMax().