LLVM: lib/Support/Statistic.cpp File Reference (original) (raw)
#include "[llvm/ADT/Statistic.h](Statistic%5F8h%5Fsource.html)"#include "[DebugOptions.h](DebugOptions%5F8h%5Fsource.html)"#include "[llvm/ADT/StringExtras.h](StringExtras%5F8h%5Fsource.html)"#include "[llvm/Support/CommandLine.h](CommandLine%5F8h%5Fsource.html)"#include "[llvm/Support/Compiler.h](Compiler%5F8h%5Fsource.html)"#include "[llvm/Support/Debug.h](Support%5F2Debug%5F8h%5Fsource.html)"#include "[llvm/Support/Format.h](Format%5F8h%5Fsource.html)"#include "[llvm/Support/ManagedStatic.h](ManagedStatic%5F8h%5Fsource.html)"#include "[llvm/Support/Mutex.h](Mutex%5F8h%5Fsource.html)"#include "[llvm/Support/Timer.h](Timer%5F8h%5Fsource.html)"#include "[llvm/Support/YAMLTraits.h](YAMLTraits%5F8h%5Fsource.html)"#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"#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 |
|---|
Definition at line 46 of file Statistic.cpp.
◆ 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 StatInfo | static |
|---|
Definition at line 93 of file Statistic.cpp.
Referenced by llvm::GetStatistics(), llvm::PrintStatistics(), llvm::PrintStatistics(), llvm::PrintStatisticsJSON(), llvm::TrackingStatistic::RegisterStatistic(), and llvm::ResetStatistics().
◆ StatLock
| ManagedStatic<sys::SmartMutex > StatLock | static |
|---|
Definition at line 94 of file Statistic.cpp.
Referenced by llvm::GetStatistics(), llvm::PrintStatistics(), llvm::PrintStatisticsJSON(), and llvm::TrackingStatistic::RegisterStatistic().
◆ StatsAsJSON
| bool StatsAsJSON | static |
|---|
Definition at line 45 of file Statistic.cpp.
Referenced by llvm::initStatisticOptions(), and llvm::PrintStatistics().