class InstrProfStats

Declaration

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

Description

This class records statistics on instrumentation based profiling.

Declared at: clang/lib/CodeGen/CodeGenModule.h:214

Member Variables

private uint32_t VisitedInMainFile
private uint32_t MissingInMainFile
private uint32_t Visited
private uint32_t Missing
private uint32_t Mismatched

Method Overview

Methods

InstrProfStats()

Declared at: clang/lib/CodeGen/CodeGenModule.h:222

void addMismatched(bool MainFile)

Description

Record that a function we've visited has mismatched profile data.

Declared at: clang/lib/CodeGen/CodeGenModule.h:239

Parameters

bool MainFile

void addMissing(bool MainFile)

Description

Record that a function we've visited has no profile data.

Declared at: clang/lib/CodeGen/CodeGenModule.h:233

Parameters

bool MainFile

void addVisited(bool MainFile)

Description

Record that we've visited a function and whether or not that function was in the main source file.

Declared at: clang/lib/CodeGen/CodeGenModule.h:227

Parameters

bool MainFile

bool hasDiagnostics()

Description

Whether or not the stats we've gathered indicate any potential problems.

Declared at: clang/lib/CodeGen/CodeGenModule.h:241

void reportDiagnostics(
    clang::DiagnosticsEngine& Diags,
    llvm::StringRef MainFile)

Description

Report potential problems we've found to \c Diags.

Declared at: clang/lib/CodeGen/CodeGenModule.h:243

Parameters

clang::DiagnosticsEngine& Diags
llvm::StringRef MainFile