LLVM 20.0.0git
Variables
Statistic.cpp File Reference
#include "llvm/ADT/Statistic.h"
#include "DebugOptions.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>

Go to the source code of this file.

Variables

static bool EnableStats
 -stats - Command line option to cause transformations to emit stats about what they did.
 
static bool StatsAsJSON
 
static bool Enabled
 
static bool PrintOnExit
 
static ManagedStatic< StatisticInfo > StatInfo
 
static ManagedStatic< sys::SmartMutex< true > > StatLock
 

Variable Documentation

◆ Enabled

bool Enabled
static

◆ EnableStats

bool EnableStats
static

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

Definition at line 44 of file Statistic.cpp.

Referenced by llvm::AreStatisticsEnabled(), llvm::initStatisticOptions(), llvm::PrintStatistics(), and llvm::TrackingStatistic::RegisterStatistic().

◆ PrintOnExit

bool PrintOnExit
static

Definition at line 47 of file Statistic.cpp.

Referenced by llvm::EnableStatistics().

◆ StatInfo

ManagedStatic<StatisticInfo> StatInfo
static

◆ StatLock

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

◆ StatsAsJSON

bool StatsAsJSON
static

Definition at line 45 of file Statistic.cpp.

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