LLVM  8.0.1
Classes | Namespaces | Macros | Functions
Statistic.h File Reference
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Compiler.h"
#include <atomic>
#include <memory>
#include <vector>
Include dependency graph for Statistic.h:

Go to the source code of this file.

Classes

class  llvm::Statistic
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Macros

#define LLVM_ENABLE_STATS   1
 
#define STATISTIC(VARNAME, DESC)   static llvm::Statistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC, {0}, {false}}
 

Functions

void llvm::EnableStatistics (bool PrintOnExit=true)
 Enable the collection and printing of statistics. More...
 
bool llvm::AreStatisticsEnabled ()
 Check if statistics are enabled. More...
 
std::unique_ptr< raw_fd_ostreamllvm::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...
 

Macro Definition Documentation

◆ LLVM_ENABLE_STATS

#define LLVM_ENABLE_STATS   1

Definition at line 39 of file Statistic.h.

◆ STATISTIC

#define STATISTIC (   VARNAME,
  DESC 
)    static llvm::Statistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC, {0}, {false}}

Definition at line 169 of file Statistic.h.