LLVM API Documentation
#include "llvm/Support/Timer.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/ManagedStatic.h"#include "llvm/Support/Streams.h"#include "llvm/System/Process.h"#include <algorithm>#include <fstream>#include <functional>#include <map>Include dependency graph for Timer.cpp:

Go to the source code of this file.
Namespaces | |
| namespace | llvm |
Classes | |
| struct | TimeRecord |
Typedefs | |
| typedef std::map< std::string, Timer > | Name2Timer |
| typedef std::map< std::string, std::pair< TimerGroup, Name2Timer > > | Name2Pair |
Functions | |
| std::string & | getLibSupportInfoOutputFilename () |
| TimerGroup * | getDefaultTimerGroup () |
| size_t | getMemUsage () |
| TimeRecord | getTimeRecord (bool Start) |
| Timer & | getNamedRegionTimer (const std::string &Name) |
| Timer & | getNamedRegionTimer (const std::string &Name, const std::string &GroupName) |
| void | printAlignedFP (double Val, unsigned AfterDec, unsigned TotalWidth, std::ostream &OS) |
| void | printVal (double Val, double Total, std::ostream &OS) |
Variables | |
| ManagedStatic< std::string > | LibSupportInfoOutputFilename |
| cl::opt< bool > | TrackSpace ("track-memory", cl::desc("Enable -time-passes memory ""tracking (this may be slow)"), cl::Hidden) |
| 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())) |
| TimerGroup * | DefaultTimerGroup = 0 |
| ManagedStatic< std::vector< Timer * > > | ActiveTimers |
| ManagedStatic< Name2Timer > | NamedTimers |
| ManagedStatic< Name2Pair > | NamedGroupedTimers |
|
|
|
|
|
Definition at line 187 of file Timer.cpp. Referenced by getNamedRegionTimer(). |
|
|
Definition at line 54 of file Timer.cpp. References DefaultTimerGroup. Referenced by llvm::Timer::Timer(). |
|
|
Definition at line 37 of file Timer.cpp. Referenced by llvm::GetLibSupportInfoOutputFile(). |
|
|
Definition at line 96 of file Timer.cpp. Referenced by llvm::Timer::addPeakMemoryMeasurement(), and getTimeRecord(). |
|
||||||||||||
|
Definition at line 204 of file Timer.cpp. References Name2Timer, and NamedGroupedTimers. |
|
|
Definition at line 196 of file Timer.cpp. References NamedTimers. Referenced by llvm::NamedRegionTimer::NamedRegionTimer(). |
|
|
Definition at line 107 of file Timer.cpp. References TimeRecord::Elapsed, getMemUsage(), TimeRecord::MemUsed, llvm::sys::TimeValue::microseconds(), llvm::sys::TimeValue::seconds(), TimeRecord::SystemTime, and TimeRecord::UserTime. Referenced by llvm::Timer::startTimer(), and llvm::Timer::stopTimer(). |
|
||||||||||||||||||||
|
Definition at line 238 of file Timer.cpp. Referenced by printVal(). |
|
||||||||||||||||
|
Definition at line 254 of file Timer.cpp. References printAlignedFP(). Referenced by llvm::Timer::print(). |
|
|
Definition at line 131 of file Timer.cpp. Referenced by llvm::Timer::addPeakMemoryMeasurement(), llvm::Timer::startTimer(), and llvm::Timer::stopTimer(). |
|
|
Definition at line 53 of file Timer.cpp. Referenced by getDefaultTimerGroup(). |
|
|
|
|
|
Definition at line 36 of file Timer.cpp. Referenced by llvm::GetLibSupportInfoOutputFile(). |
|
|
Definition at line 194 of file Timer.cpp. Referenced by getNamedRegionTimer(). |
|
|
Definition at line 192 of file Timer.cpp. Referenced by getNamedRegionTimer(). |
|
|
|