LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
Statistic.cpp File Reference
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cstring>
Include dependency graph for Statistic.cpp:

Go to the source code of this file.

Namespaces

 llvm
 List of target independent CodeGen pass IDs.
 

Functions

raw_ostreamllvm::CreateInfoOutputFile ()
 

Variables

static cl::opt< boolEnabled ("stats", cl::desc("Enable statistics output from program (available with Asserts)"))
 
static ManagedStatic
< StatisticInfo > 
StatInfo
 
static ManagedStatic
< sys::SmartMutex< true > > 
StatLock
 

Variable Documentation

cl::opt<bool> Enabled("stats", cl::desc("Enable statistics output from program (available with Asserts)"))
static

-stats - Command line option to cause transformations to emit stats about what they did.

Referenced by llvm::AreStatisticsEnabled(), llvm::EnableStatistics(), llvm::PrintStatistics(), and llvm::Statistic::RegisterStatistic().

ManagedStatic<StatisticInfo> StatInfo
static

Definition at line 65 of file Statistic.cpp.

Referenced by llvm::PrintStatistics(), and llvm::Statistic::RegisterStatistic().

ManagedStatic<sys::SmartMutex<true> > StatLock
static

Definition at line 66 of file Statistic.cpp.

Referenced by llvm::Statistic::RegisterStatistic().