LLVM  4.0.0
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/raw_ostream.h"
#include "llvm/Support/YAMLTraits.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 TimerGroupDefaultTimerGroup = nullptr
 
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

static TimerGroup* getDefaultTimerGroup ( )
static

Definition at line 77 of file Timer.cpp.

References DefaultTimerGroup, llvm::Lock, llvm::sys::MemoryFence(), and TimerLock.

Referenced by llvm::Timer::init().

static std::string& getLibSupportInfoOutputFilename ( )
static

Definition at line 35 of file Timer.cpp.

References LibSupportInfoOutputFilename.

Referenced by llvm::CreateInfoOutputFile().

static size_t getMemUsage ( )
inlinestatic

Definition at line 115 of file Timer.cpp.

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

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

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

Definition at line 158 of file Timer.cpp.

References llvm::format().

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

Variable Documentation

TimerGroup* DefaultTimerGroup = nullptr
static

Definition at line 76 of file Timer.cpp.

Referenced by getDefaultTimerGroup().

ManagedStatic<std::string> LibSupportInfoOutputFilename
static

Definition at line 34 of file Timer.cpp.

Referenced by getLibSupportInfoOutputFilename().

ManagedStatic<Name2PairMap> NamedGroupedTimers
static

Definition at line 216 of file Timer.cpp.

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

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

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

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