LLVM 20.0.0git
Classes | Namespaces | Functions | Variables
Timer.cpp File Reference
#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>

Go to the source code of this file.

Classes

class  llvm::TimerGlobals
 

Namespaces

namespace  mtg
 

Functions

static std::string & mtg::LibSupportInfoOutputFilename ()
 
static const std::string & mtg::InfoOutputFilename ()
 
static bool mtg::TrackSpace ()
 
static bool mtg::SortTimers ()
 
static SignpostEmittermtg::Signposts ()
 
static sys::SmartMutex< true > & mtg::TimerLock ()
 
static TimerGroupmtg::DefaultTimerGroup ()
 
static TimerGroupmtg::claimDefaultTimerGroup ()
 
static Name2PairMap & mtg::NamedGroupedTimers ()
 
static size_t getMemUsage ()
 
static uint64_t getCurInstructionsExecuted ()
 
static void printVal (double Val, double Total, raw_ostream &OS)
 

Variables

static TimerGroupTimerGroupList = nullptr
 This is the global list of TimerGroups, maintained by the TimerGroup ctor/dtor and is protected by the TimerLock lock.
 
static ManagedStatic< TimerGlobalsManagedTimerGlobals
 

Function Documentation

◆ getCurInstructionsExecuted()

static uint64_t getCurInstructionsExecuted ( )
static

Definition at line 124 of file Timer.cpp.

Referenced by llvm::TimeRecord::getCurrentTime().

◆ getMemUsage()

static size_t getMemUsage ( )
inlinestatic

Definition at line 118 of file Timer.cpp.

References llvm::sys::Process::GetMallocUsage(), and mtg::TrackSpace().

Referenced by llvm::TimeRecord::getCurrentTime().

◆ printVal()

static void printVal ( double  Val,
double  Total,
raw_ostream OS 
)
static

Definition at line 177 of file Timer.cpp.

References llvm::format(), OS, and llvm::Total.

Referenced by llvm::TimeRecord::print().

Variable Documentation

◆ ManagedTimerGlobals

ManagedStatic<TimerGlobals> ManagedTimerGlobals
static

◆ TimerGroupList

TimerGroup* TimerGroupList = nullptr
static

This is the global list of TimerGroups, maintained by the TimerGroup ctor/dtor and is protected by the TimerLock lock.

Definition at line 251 of file Timer.cpp.

Referenced by llvm::TimerGroup::clearAll(), llvm::TimerGroup::printAll(), and llvm::TimerGroup::printAllJSONValues().