class DebugCounter

Declaration

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

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

Method Overview

Methods

CounterVector::const_iterator begin() const

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

void dump() const

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

static void enableAllCounters()

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

CounterVector::const_iterator end() const

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

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

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

Parameters

const std::string& Name

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

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

Parameters

unsigned int ID

static int64_t getCounterValue(unsigned int ID)

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

Parameters

unsigned int ID

unsigned int getNumCounters() const

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

static llvm::DebugCounter& instance()

Description

Returns a reference to the singleton instance.

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

static bool isCounterSet(unsigned int ID)

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

Parameters

unsigned int ID

void print(llvm::raw_ostream& OS) const

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

Parameters

llvm::raw_ostream& OS

void push_back(const std::string&)

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

Parameters

const std::string&

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

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

Parameters

llvm::StringRef Name
llvm::StringRef Desc

static void setCounterValue(unsigned int ID,
                            int64_t Count)

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

Parameters

unsigned int ID
int64_t Count

static inline bool shouldExecute(
    unsigned int CounterName)

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

Parameters

unsigned int CounterName

~DebugCounter()

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