LLVM  6.0.0svn
Functions | Variables
Timer.cpp File Reference
#include "llvm/Support/Timer.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringMap.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/YAMLTraits.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for Timer.cpp:

Go to the source code of this file.

Functions

static std::string & getLibSupportInfoOutputFilename ()
 
static TimerGroupgetDefaultTimerGroup ()
 
static size_t getMemUsage ()
 
static void printVal (double Val, double Total, raw_ostream &OS)
 

Variables

static ManagedStatic< std::string > LibSupportInfoOutputFilename
 
static ManagedStatic< sys::SmartMutex< true > > TimerLock
 
static ManagedStatic< TimerGroup, CreateDefaultTimerGroup > DefaultTimerGroup
 
static ManagedStatic< Name2PairMap > NamedGroupedTimers
 
static TimerGroupTimerGroupList = nullptr
 This is the global list of TimerGroups, maintained by the TimerGroup ctor/dtor and is protected by the TimerLock lock. More...
 

Function Documentation

◆ getDefaultTimerGroup()

static TimerGroup* getDefaultTimerGroup ( )
static

Definition at line 83 of file Timer.cpp.

References DefaultTimerGroup.

Referenced by llvm::Timer::init(), and llvm::TimerGroup::~TimerGroup().

◆ getLibSupportInfoOutputFilename()

static std::string& getLibSupportInfoOutputFilename ( )
static

Definition at line 35 of file Timer.cpp.

References LibSupportInfoOutputFilename.

Referenced by llvm::CreateInfoOutputFile().

◆ getMemUsage()

static size_t getMemUsage ( )
inlinestatic

Definition at line 107 of file Timer.cpp.

References llvm::sys::Process::GetMallocUsage().

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

◆ printVal()

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

Definition at line 150 of file Timer.cpp.

References llvm::format().

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

Variable Documentation

◆ DefaultTimerGroup

ManagedStatic<TimerGroup, CreateDefaultTimerGroup> DefaultTimerGroup
static

Definition at line 82 of file Timer.cpp.

Referenced by getDefaultTimerGroup().

◆ LibSupportInfoOutputFilename

ManagedStatic<std::string> LibSupportInfoOutputFilename
static

Definition at line 34 of file Timer.cpp.

Referenced by getLibSupportInfoOutputFilename().

◆ NamedGroupedTimers

ManagedStatic<Name2PairMap> NamedGroupedTimers
static

Definition at line 208 of file Timer.cpp.

◆ 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 223 of file Timer.cpp.

Referenced by llvm::TimerGroup::TimerGroup().

◆ TimerLock

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

Definition at line 39 of file Timer.cpp.