clang API Documentation
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. | |
| 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. | |
This class records statistics on instrumentation based profiling.
Definition at line 224 of file CodeGenModule.h.
| clang::CodeGen::InstrProfStats::InstrProfStats | ( | ) | [inline] |
Definition at line 232 of file CodeGenModule.h.
| void clang::CodeGen::InstrProfStats::addMismatched | ( | bool | MainFile | ) | [inline] |
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.
| bool clang::CodeGen::InstrProfStats::hasDiagnostics | ( | ) | [inline] |
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().