LLVM
13.0.0git
|
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Compiler.h"
#include <atomic>
#include <memory>
#include <vector>
Go to the source code of this file.
Classes | |
class | llvm::StatisticBase |
class | llvm::TrackingStatistic |
class | llvm::NoopStatistic |
Namespaces | |
llvm | |
Macros | |
#define | LLVM_ENABLE_STATS 1 |
#define | STATISTIC(VARNAME, DESC) static llvm::Statistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC} |
#define | ALWAYS_ENABLED_STATISTIC(VARNAME, DESC) static llvm::TrackingStatistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC} |
Typedefs | |
using | llvm::Statistic = TrackingStatistic |
Functions | |
void | llvm::EnableStatistics (bool DoPrintOnExit=true) |
Enable the collection and printing of statistics. More... | |
bool | llvm::AreStatisticsEnabled () |
Check if statistics are enabled. More... | |
std::unique_ptr< raw_fd_ostream > | llvm::CreateInfoOutputFile () |
Return a file stream to print our output on. More... | |
void | llvm::PrintStatistics () |
Print statistics to the file returned by CreateInfoOutputFile(). More... | |
void | llvm::PrintStatistics (raw_ostream &OS) |
Print statistics to the given output stream. More... | |
void | llvm::PrintStatisticsJSON (raw_ostream &OS) |
Print statistics in JSON format. More... | |
const std::vector< std::pair< StringRef, unsigned > > | llvm::GetStatistics () |
Get the statistics. More... | |
void | llvm::ResetStatistics () |
Reset the statistics. More... | |
#define ALWAYS_ENABLED_STATISTIC | ( | VARNAME, | |
DESC | |||
) | static llvm::TrackingStatistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC} |
Definition at line 174 of file Statistic.h.
#define LLVM_ENABLE_STATS 1 |
Definition at line 38 of file Statistic.h.
#define STATISTIC | ( | VARNAME, | |
DESC | |||
) | static llvm::Statistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC} |
Definition at line 169 of file Statistic.h.