LLVM 20.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/YAMLTraits.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 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 538 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 529 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::CreateInfoOutputFile().
|
static |
Definition at line 541 of file Timer.cpp.
References ManagedTimerGlobals.
|
static |
Definition at line 179 of file Timer.cpp.
References llvm::format(), OS, and llvm::Total.
Referenced by llvm::TimeRecord::print().
|
static |
Definition at line 534 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by llvm::Timer::startTimer(), and llvm::Timer::stopTimer().
|
static |
Definition at line 533 of file Timer.cpp.
References ManagedTimerGlobals.
|
static |
Definition at line 535 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(), and llvm::TimerGroup::~TimerGroup().
|
static |
Definition at line 532 of file Timer.cpp.
References ManagedTimerGlobals.
Referenced by getMemUsage().
|
static |
Definition at line 527 of file Timer.cpp.
Referenced by llvm::TimerGroup::acquireTimerGlobals(), llvm::TimerGroup::constructForStatistics(), defaultTimerGroup(), llvm::initTimerOptions(), 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 253 of file Timer.cpp.
Referenced by llvm::TimerGroup::clearAll(), llvm::TimerGroup::printAll(), and llvm::TimerGroup::printAllJSONValues().