LLVM
8.0.1
|
#include "llvm/ADT/Statistic.h"
Public Member Functions | |
unsigned | getValue () const |
const char * | getDebugType () const |
const char * | getName () const |
const char * | getDesc () const |
void | construct (const char *debugtype, const char *name, const char *desc) |
construct - This should only be called for non-global statistics. More... | |
operator unsigned () const | |
const Statistic & | operator= (unsigned Val) |
const Statistic & | operator++ () |
unsigned | operator++ (int) |
const Statistic & | operator-- () |
unsigned | operator-- (int) |
const Statistic & | operator+= (unsigned V) |
const Statistic & | operator-= (unsigned V) |
void | updateMax (unsigned V) |
Public Attributes | |
const char * | DebugType |
const char * | Name |
const char * | Desc |
std::atomic< unsigned > | Value |
std::atomic< bool > | Initialized |
Protected Member Functions | |
Statistic & | init () |
void | RegisterStatistic () |
RegisterStatistic - The first time a statistic is bumped, this method is called. More... | |
Definition at line 48 of file Statistic.h.
|
inline |
construct - This should only be called for non-global statistics.
Definition at line 62 of file Statistic.h.
References name.
Definition at line 57 of file Statistic.h.
References DebugType.
Referenced by llvm::AreStatisticsEnabled(), and llvm::PrintStatisticsJSON().
Definition at line 59 of file Statistic.h.
References Desc.
Referenced by llvm::AreStatisticsEnabled().
Definition at line 58 of file Statistic.h.
References Name.
Referenced by llvm::AreStatisticsEnabled(), and llvm::PrintStatisticsJSON().
|
inline |
Definition at line 56 of file Statistic.h.
Referenced by operator unsigned(), and llvm::PrintStatisticsJSON().
|
inlineprotected |
Definition at line 158 of file Statistic.h.
References 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 84 of file Statistic.h.
References init().
|
inline |
Definition at line 94 of file Statistic.h.
References init().
|
protected |
RegisterStatistic - The first time a statistic is bumped, this method is called.
Definition at line 94 of file Statistic.cpp.
References llvm::TimerGroup::ConstructTimerLists(), llvm::Lock, llvm::PrintStatistics(), SI, StatInfo, StatLock, and Stats.
Referenced by init().
|
inline |
Definition at line 113 of file Statistic.h.
References init(), operator++(), operator+=(), operator--(), operator-=(), and operator=().
Definition at line 50 of file Statistic.h.
Referenced by getDebugType().
Definition at line 52 of file Statistic.h.
Referenced by getDesc().
std::atomic<bool> llvm::Statistic::Initialized |
Definition at line 54 of file Statistic.h.
Definition at line 51 of file Statistic.h.
Referenced by getName().
std::atomic<unsigned> llvm::Statistic::Value |
Definition at line 53 of file Statistic.h.