LLVM  8.0.1
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)"), cl::Hidden)
 -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"), cl::Hidden)
 
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 52 of file Statistic.cpp.

Referenced by llvm::EnableStatistics().

◆ StatInfo

ManagedStatic<StatisticInfo> StatInfo
static

◆ StatLock

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

Definition at line 90 of file Statistic.cpp.

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

◆ Stats

cl::opt<bool> Stats("stats", cl::desc("Enable statistics output from program (available with Asserts)"), cl::Hidden)
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"), cl::Hidden)
static

Referenced by llvm::PrintStatistics().