LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
Timer.cpp File Reference
#include "llvm/Support/Timer.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.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 dependency graph for Timer.cpp:

Go to the source code of this file.

Namespaces

 llvm
 List of target independent CodeGen pass IDs.
 

Functions

raw_ostreamllvm::CreateInfoOutputFile ()
 
static std::string & getLibSupportInfoOutputFilename ()
 
static TimerGroupgetDefaultTimerGroup ()
 
static size_t getMemUsage ()
 
static void printVal (double Val, double Total, raw_ostream &OS)
 
static TimergetNamedRegionTimer (StringRef Name)
 

Variables

static ManagedStatic< std::string > LibSupportInfoOutputFilename
 
static ManagedStatic
< sys::SmartMutex< true > > 
TimerLock
 
static TimerGroupDefaultTimerGroup = 0
 
static ManagedStatic
< std::vector< Timer * > > 
ActiveTimers
 
static ManagedStatic
< Name2TimerMap > 
NamedTimers
 
static ManagedStatic
< Name2PairMap > 
NamedGroupedTimers
 
static TimerGroupTimerGroupList = 0
 

Function Documentation

static TimerGroup* getDefaultTimerGroup ( )
static
static std::string& getLibSupportInfoOutputFilename ( )
static

Definition at line 38 of file Timer.cpp.

References LibSupportInfoOutputFilename.

Referenced by llvm::CreateInfoOutputFile().

static size_t getMemUsage ( )
inlinestatic

Definition at line 124 of file Timer.cpp.

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

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

static Timer& getNamedRegionTimer ( StringRef  Name)
static

Definition at line 228 of file Timer.cpp.

References llvm::Timer::init(), llvm::Timer::isInitialized(), T, and TimerLock.

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

Definition at line 168 of file Timer.cpp.

References llvm::format().

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

Variable Documentation

ManagedStatic<std::vector<Timer*> > ActiveTimers
static

Definition at line 147 of file Timer.cpp.

Referenced by llvm::Timer::startTimer(), and llvm::Timer::stopTimer().

TimerGroup* DefaultTimerGroup = 0
static

Definition at line 81 of file Timer.cpp.

Referenced by getDefaultTimerGroup().

ManagedStatic<std::string> LibSupportInfoOutputFilename
static

Definition at line 37 of file Timer.cpp.

Referenced by getLibSupportInfoOutputFilename().

ManagedStatic<Name2PairMap> NamedGroupedTimers
static

Definition at line 226 of file Timer.cpp.

ManagedStatic<Name2TimerMap> NamedTimers
static

Definition at line 225 of file Timer.cpp.

TimerGroup* TimerGroupList = 0
static

TimerGroupList - 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::printAll(), and llvm::TimerGroup::TimerGroup().

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