|
LLVM 22.0.0git
|
#include "llvm/Support/Timer.h"#include "DebugOptions.h"#include "llvm/ADT/Statistic.h"#include "llvm/ADT/StringMap.h"#include "llvm/Config/config.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/FileSystem.h"#include "llvm/Support/Format.h"#include "llvm/Support/ManagedStatic.h"#include "llvm/Support/Mutex.h"#include "llvm/Support/Process.h"#include "llvm/Support/Signposts.h"#include "llvm/Support/raw_ostream.h"#include <limits>#include <optional>Go to the source code of this file.
Classes | |
| class | llvm::TimerGlobals |
Functions | |
| static std::string & | libSupportInfoOutputFilename () |
| static bool | trackSpace () |
| static bool | sortTimers () |
| static SignpostEmitter & | signposts () |
| static sys::SmartMutex< true > & | timerLock () |
| static TimerGroup & | defaultTimerGroup () |
| static Name2PairMap & | namedGroupedTimers () |
| static bool | isTimerGlobalsConstructed () |
| static size_t | getMemUsage () |
| static uint64_t | getCurInstructionsExecuted () |
| static void | printVal (double Val, double Total, raw_ostream &OS) |
Variables | |
| static TimerGroup * | TimerGroupList = nullptr |
| This is the global list of TimerGroups, maintained by the TimerGroup ctor/dtor and is protected by the timerLock lock. | |
| static ManagedStatic< TimerGlobals > | ManagedTimerGlobals |
|
static |
Definition at line 560 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::Timer::init().
|
static |
Definition at line 117 of file Timer.cpp.
Referenced by llvm::TimeRecord::getCurrentTime().
|
inlinestatic |
Definition at line 111 of file Timer.cpp.
References llvm::sys::Process::GetMallocUsage(), and trackSpace().
Referenced by llvm::TimeRecord::getCurrentTime().
|
static |
Definition at line 574 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::TimerGroup::~TimerGroup().
|
static |
Definition at line 551 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::CreateInfoOutputFile().
|
static |
Definition at line 563 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::NamedRegionTimer::getNamedTimerGroup(), and llvm::NamedRegionTimer::NamedRegionTimer().
|
static |
Definition at line 179 of file Timer.cpp.
References llvm::format(), and llvm::Total.
Referenced by llvm::TimeRecord::print().
|
static |
Definition at line 556 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::Timer::startTimer(), and llvm::Timer::stopTimer().
|
static |
Definition at line 555 of file Timer.cpp.
References ManagedTimerGlobals.
|
static |
Definition at line 557 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::TimerGroup::clear(), llvm::TimerGroup::clearAll(), llvm::TimerGroup::print(), llvm::TimerGroup::printAll(), llvm::TimerGroup::printAllJSONValues(), llvm::TimerGroup::printJSONValues(), llvm::TimerGroup::TimerGroup(), and llvm::TimerGroup::~TimerGroup().
|
static |
Definition at line 554 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by getMemUsage().
|
static |
Definition at line 549 of file Timer.cpp.
Referenced by llvm::TimerGroup::acquireTimerGlobals(), llvm::TimerGroup::constructForStatistics(), defaultTimerGroup(), llvm::initTimerOptions(), isTimerGlobalsConstructed(), libSupportInfoOutputFilename(), namedGroupedTimers(), signposts(), sortTimers(), timerLock(), and trackSpace().
|
static |
This is the global list of TimerGroups, maintained by the TimerGroup ctor/dtor and is protected by the timerLock lock.
Definition at line 270 of file Timer.cpp.
Referenced by llvm::TimerGroup::clearAll(), llvm::TimerGroup::printAll(), and llvm::TimerGroup::printAllJSONValues().