class DebugCounter

Declaration

class DebugCounter { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/DebugCounter.h:56

Member Variables

private DenseMap<unsigned int, llvm::DebugCounter::CounterInfo> Counters
private llvm::DebugCounter::CounterVector RegisteredCounters
private bool Enabled = false

Method Overview

Methods

unsigned int addCounter(const std::string& Name,
                        const std::string& Desc)

Declared at: llvm/include/llvm/Support/DebugCounter.h:162

Parameters

const std::string& Name
const std::string& Desc

CounterVector::const_iterator begin() const

Declared at: llvm/include/llvm/Support/DebugCounter.h:140

void dump() const

Declared at: llvm/include/llvm/Support/DebugCounter.h:121

static void enableAllCounters()

Declared at: llvm/include/llvm/Support/DebugCounter.h:150

CounterVector::const_iterator end() const

Declared at: llvm/include/llvm/Support/DebugCounter.h:143

unsigned int getCounterId(
    const std::string& Name) const

Declared at: llvm/include/llvm/Support/DebugCounter.h:126

Parameters

const std::string& Name

std::pair<std::string, std::string>
getCounterInfo(unsigned int ID) const

Declared at: llvm/include/llvm/Support/DebugCounter.h:134

Parameters

unsigned int ID

static int64_t getCounterValue(unsigned int ID)

Declared at: llvm/include/llvm/Support/DebugCounter.h:107

Parameters

unsigned int ID

unsigned int getNumCounters() const

Declared at: llvm/include/llvm/Support/DebugCounter.h:131

static llvm::DebugCounter& instance()

Description

Returns a reference to the singleton instance.

Declared at: llvm/include/llvm/Support/DebugCounter.h:61

static bool isCounterSet(unsigned int ID)

Declared at: llvm/include/llvm/Support/DebugCounter.h:102

Parameters

unsigned int ID

static bool isCountingEnabled()

Declared at: llvm/include/llvm/Support/DebugCounter.h:153

void print(llvm::raw_ostream& OS) const

Declared at: llvm/include/llvm/Support/DebugCounter.h:123

Parameters

llvm::raw_ostream& OS

void push_back(const std::string&)

Declared at: llvm/include/llvm/Support/DebugCounter.h:64

Parameters

const std::string&

static unsigned int registerCounter(
    llvm::StringRef Name,
    llvm::StringRef Desc)

Declared at: llvm/include/llvm/Support/DebugCounter.h:71

Parameters

llvm::StringRef Name
llvm::StringRef Desc

static void setCounterValue(unsigned int ID,
                            int64_t Count)

Declared at: llvm/include/llvm/Support/DebugCounter.h:115

Parameters

unsigned int ID
int64_t Count

static inline bool shouldExecute(
    unsigned int CounterName)

Declared at: llvm/include/llvm/Support/DebugCounter.h:74

Parameters

unsigned int CounterName

~DebugCounter()

Declared at: llvm/include/llvm/Support/DebugCounter.h:58