clang  3.7.0
Public Member Functions | List of all members
clang::CodeGen::InstrProfStats Class Reference

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

#include <CodeGenModule.h>

Public Member Functions

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

Detailed Description

This class records statistics on instrumentation based profiling.

Definition at line 228 of file CodeGenModule.h.

Constructor & Destructor Documentation

clang::CodeGen::InstrProfStats::InstrProfStats ( )
inline

Definition at line 236 of file CodeGenModule.h.

Member Function Documentation

void clang::CodeGen::InstrProfStats::addMismatched ( bool  MainFile)
inline

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

Definition at line 253 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 247 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 241 of file CodeGenModule.h.

bool clang::CodeGen::InstrProfStats::hasDiagnostics ( )
inline

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

Definition at line 255 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 328 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: