LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Timer.cpp File Reference

#include "llvm/Support/Timer.h"
#include "llvm/Support/CommandLine.h"
#include <algorithm>
#include <iostream>
#include <functional>
#include <fstream>
#include <map>
#include "llvm/Config/sys/resource.h"
#include "llvm/Config/sys/time.h"
#include "llvm/Config/unistd.h"
#include "llvm/Config/malloc.h"
#include "llvm/Config/windows.h"

Include dependency graph for Timer.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm

Classes

struct  TimeRecord

Functions

std::ostream * llvm::GetLibSupportInfoOutputFile ()
static std::string & getLibSupportInfoOutputFilename ()
static TimerGroupgetDefaultTimerGroup ()
static long getMemUsage ()
static TimeRecord getTimeRecord (bool Start)
static TimergetNamedRegionTimer (const std::string &Name)
static void printAlignedFP (double Val, unsigned AfterDec, unsigned TotalWidth, std::ostream &OS)
static void printVal (double Val, double Total, std::ostream &OS)
std::ostream * llvm::GetLibSupportInfoOutputFile ()

Variables

static TimerGroupDefaultTimerGroup = 0
static std::vector< Timer * > ActiveTimers


Function Documentation

static TimerGroup* getDefaultTimerGroup  )  [static]
 

Definition at line 59 of file Timer.cpp.

static std::string& getLibSupportInfoOutputFilename  )  [static]
 

Definition at line 39 of file Timer.cpp.

Referenced by llvm::GetLibSupportInfoOutputFile().

static long getMemUsage  )  [static]
 

Definition at line 101 of file Timer.cpp.

References TrackSpace.

Referenced by llvm::Timer::addPeakMemoryMeasurement(), and getTimeRecord().

static Timer& getNamedRegionTimer const std::string &  Name  )  [static]
 

Definition at line 216 of file Timer.cpp.

References I.

static TimeRecord getTimeRecord bool  Start  )  [static]
 

Definition at line 116 of file Timer.cpp.

References TimeRecord::Elapsed, getMemUsage(), TimeRecord::MemUsed, TimeRecord::SystemTime, and TimeRecord::UserTime.

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

static void printAlignedFP double  Val,
unsigned  AfterDec,
unsigned  TotalWidth,
std::ostream &  OS
[static]
 

Definition at line 237 of file Timer.cpp.

Referenced by printVal().

static void printVal double  Val,
double  Total,
std::ostream &  OS
[static]
 

Definition at line 253 of file Timer.cpp.

References printAlignedFP().

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


Variable Documentation

std::vector<Timer*> ActiveTimers [static]
 

Definition at line 162 of file Timer.cpp.

TimerGroup* DefaultTimerGroup = 0 [static]
 

Definition at line 58 of file Timer.cpp.

cl::opt<std::string, true> InfoOutputFilename("info-output-file", cl::value_desc("filename"), cl::desc("File to append -stats and -timer output to"), cl::Hidden, cl::location(getLibSupportInfoOutputFilename())) [static]
 

cl::opt<bool> TrackSpace("track-memory", cl::desc("Enable -time-passes memory ""tracking (this may be slow)"), cl::Hidden) [static]
 

Referenced by getMemUsage().