clang API Documentation

Public Member Functions
clang::CodeGen::InstrProfStats Class Reference

This class records statistics on instrumentation based profiling. More...

#include <CodeGenModule.h>

List of all members.

Public Member Functions

 InstrProfStats ()
void addVisited (bool MainFile)
void addMissing (bool MainFile)
 Record that a function we've visited has no profile data.
void addMismatched (bool MainFile)
 Record that a function we've visited has mismatched profile data.
bool hasDiagnostics ()
 Whether or not the stats we've gathered indicate any potential problems.
void reportDiagnostics (DiagnosticsEngine &Diags, StringRef MainFile)
 Report potential problems we've found to Diags.

Detailed Description

This class records statistics on instrumentation based profiling.

Definition at line 224 of file CodeGenModule.h.


Constructor & Destructor Documentation

Definition at line 232 of file CodeGenModule.h.


Member Function Documentation

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

Definition at line 249 of file CodeGenModule.h.

void clang::CodeGen::InstrProfStats::addMissing ( bool  MainFile) [inline]

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

Definition at line 243 of file CodeGenModule.h.

void clang::CodeGen::InstrProfStats::addVisited ( bool  MainFile) [inline]

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

Definition at line 237 of file CodeGenModule.h.

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

Definition at line 251 of file CodeGenModule.h.

Referenced by clang::CodeGen::CodeGenModule::Release(), and reportDiagnostics().

void InstrProfStats::reportDiagnostics ( DiagnosticsEngine Diags,
StringRef  MainFile 
)

Report potential problems we've found to Diags.

Definition at line 324 of file CodeGenModule.cpp.

References hasDiagnostics(), and clang::DiagnosticsEngine::Report().

Referenced by clang::CodeGen::CodeGenModule::Release().


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