LLVM  10.0.0svn
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
llvm::TrackingStatistic Class Reference

#include "llvm/ADT/Statistic.h"

Inheritance diagram for llvm::TrackingStatistic:
Inheritance graph
[legend]
Collaboration diagram for llvm::TrackingStatistic:
Collaboration graph
[legend]

Public Member Functions

 TrackingStatistic (const char *DebugType, const char *Name, const char *Desc)
 
unsigned getValue () const
 
 operator unsigned () const
 
const TrackingStatisticoperator= (unsigned Val)
 
const TrackingStatisticoperator++ ()
 
unsigned operator++ (int)
 
const TrackingStatisticoperator-- ()
 
unsigned operator-- (int)
 
const TrackingStatisticoperator+= (unsigned V)
 
const TrackingStatisticoperator-= (unsigned V)
 
void updateMax (unsigned V)
 
- Public Member Functions inherited from llvm::StatisticBase
 StatisticBase (const char *DebugType, const char *Name, const char *Desc)
 
const chargetDebugType () const
 
const chargetName () const
 
const chargetDesc () const
 

Public Attributes

std::atomic< unsignedValue
 
std::atomic< boolInitialized
 
- Public Attributes inherited from llvm::StatisticBase
const charDebugType
 
const charName
 
const charDesc
 

Protected Member Functions

TrackingStatisticinit ()
 
void RegisterStatistic ()
 RegisterStatistic - The first time a statistic is bumped, this method is called. More...
 

Detailed Description

Definition at line 61 of file Statistic.h.

Constructor & Destructor Documentation

◆ TrackingStatistic()

llvm::TrackingStatistic::TrackingStatistic ( const char DebugType,
const char Name,
const char Desc 
)
inline

Definition at line 66 of file Statistic.h.

Member Function Documentation

◆ getValue()

unsigned llvm::TrackingStatistic::getValue ( ) const
inline

Definition at line 69 of file Statistic.h.

Referenced by llvm::PrintStatisticsJSON().

◆ init()

TrackingStatistic& llvm::TrackingStatistic::init ( )
inlineprotected

Definition at line 124 of file Statistic.h.

◆ operator unsigned()

llvm::TrackingStatistic::operator unsigned ( ) const
inline

Definition at line 72 of file Statistic.h.

◆ operator++() [1/2]

const TrackingStatistic& llvm::TrackingStatistic::operator++ ( )
inline

Definition at line 79 of file Statistic.h.

References llvm::cl::init().

◆ operator++() [2/2]

unsigned llvm::TrackingStatistic::operator++ ( int  )
inline

Definition at line 84 of file Statistic.h.

References llvm::cl::init().

◆ operator+=()

const TrackingStatistic& llvm::TrackingStatistic::operator+= ( unsigned  V)
inline

Definition at line 99 of file Statistic.h.

References llvm::cl::init().

◆ operator--() [1/2]

const TrackingStatistic& llvm::TrackingStatistic::operator-- ( )
inline

Definition at line 89 of file Statistic.h.

References llvm::cl::init().

◆ operator--() [2/2]

unsigned llvm::TrackingStatistic::operator-- ( int  )
inline

Definition at line 94 of file Statistic.h.

References llvm::cl::init().

◆ operator-=()

const TrackingStatistic& llvm::TrackingStatistic::operator-= ( unsigned  V)
inline

Definition at line 106 of file Statistic.h.

References llvm::cl::init().

◆ operator=()

const TrackingStatistic& llvm::TrackingStatistic::operator= ( unsigned  Val)
inline

Definition at line 74 of file Statistic.h.

References llvm::cl::init().

◆ RegisterStatistic()

void TrackingStatistic::RegisterStatistic ( )
protected

RegisterStatistic - The first time a statistic is bumped, this method is called.

Definition at line 91 of file Statistic.cpp.

References llvm::TimerGroup::ConstructTimerLists(), llvm::Lock, llvm::PrintStatistics(), SI, StatInfo, StatLock, and Stats.

◆ updateMax()

void llvm::TrackingStatistic::updateMax ( unsigned  V)
inline

Definition at line 113 of file Statistic.h.

References llvm::cl::init().

Member Data Documentation

◆ Initialized

std::atomic<bool> llvm::TrackingStatistic::Initialized

Definition at line 64 of file Statistic.h.

◆ Value

std::atomic<unsigned> llvm::TrackingStatistic::Value

Definition at line 63 of file Statistic.h.


The documentation for this class was generated from the following files: