LLVM  6.0.0svn
Variables
Statistic.cpp File Reference
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/Timer.h"
#include "llvm/Support/YAMLTraits.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.

Variables

static cl::opt< boolStats ("stats", cl::desc("Enable statistics output from program (available with Asserts)"))
 -stats - Command line option to cause transformations to emit stats about what they did. More...
 
static cl::opt< boolStatsAsJSON ("stats-json", cl::desc("Display statistics as json data"))
 
static bool Enabled
 
static bool PrintOnExit
 
static ManagedStatic< StatisticInfo > StatInfo
 
static ManagedStatic< sys::SmartMutex< true > > StatLock
 

Variable Documentation

◆ Enabled

bool Enabled
static

◆ PrintOnExit

bool PrintOnExit
static

Definition at line 50 of file Statistic.cpp.

Referenced by llvm::EnableStatistics().

◆ StatInfo

ManagedStatic<StatisticInfo> StatInfo
static

Definition at line 74 of file Statistic.cpp.

Referenced by llvm::PrintStatistics(), and llvm::PrintStatisticsJSON().

◆ StatLock

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

Definition at line 75 of file Statistic.cpp.

◆ Stats

cl::opt<bool> Stats("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::PrintStatistics(), llvm::PrintStatisticsJSON(), and llvm::Statistic::RegisterStatistic().

◆ StatsAsJSON

cl::opt<bool> StatsAsJSON("stats-json", cl::desc("Display statistics as json data"))
static

Referenced by llvm::PrintStatistics().