LLVM API Documentation
#include <Timer.h>
Collaboration diagram for llvm::Timer:
Public Member Functions | |
Timer (const std::string &N) | |
Timer (const std::string &N, TimerGroup &tg) | |
Timer (const Timer &T) | |
~Timer () | |
double | getProcessTime () const |
double | getWallTime () const |
long | getMemUsed () const |
long | getPeakMem () const |
std::string | getName () const |
const Timer & | operator= (const Timer &T) |
bool | operator< (const Timer &T) const |
bool | operator> (const Timer &T) const |
void | startTimer () |
void | stopTimer () |
void | print (const Timer &Total, std::ostream &OS) |
Static Public Member Functions | |
static void | addPeakMemoryMeasurement () |
Friends | |
class | TimerGroup |
Definition at line 35 of file Timer.h.
|
Definition at line 64 of file Timer.cpp. References llvm::TimerGroup::addTimer(). |
|
Definition at line 70 of file Timer.cpp. References llvm::TimerGroup::addTimer(). |
|
Definition at line 76 of file Timer.cpp. References llvm::TimerGroup::addTimer(), operator=(), and TG. |
|
Definition at line 91 of file Timer.cpp. References llvm::TimerGroup::addTimerToPrint(), and llvm::TimerGroup::removeTimer(). |
|
addPeakMemoryMeasurement - This method should be called whenever memory usage needs to be checked. It adds a peak memory measurement to the currently active timers, which will be printed when the timer group prints Definition at line 204 of file Timer.cpp. References E, getMemUsage(), and I. Referenced by llvm::DSGraph::cloneInto(), and llvm::DSGraph::DSGraph(). |
|
|
|
|
|
|
|
Definition at line 51 of file Timer.h. Referenced by print(). |
|
|
|
Definition at line 71 of file Timer.h. References Elapsed. |
|
Definition at line 57 of file Timer.h. References Elapsed, MemUsed, Name, PeakMem, PeakMemBase, Started, SystemTime, TG, and UserTime. Referenced by Timer(). |
|
|
|
print - Print the current timer to standard error, and reset the "Started" flag. Definition at line 265 of file Timer.cpp. References Elapsed, getProcessTime(), MemUsed, PeakMem, printVal(), SystemTime, and UserTime. |
|
startTimer - Start the timer running. Time between calls to startTimer/stopTimer is counted by the Timer class. Note that these calls must be correctly paired. Definition at line 164 of file Timer.cpp. References TimeRecord::Elapsed, getTimeRecord(), TimeRecord::MemUsed, TimeRecord::SystemTime, and TimeRecord::UserTime. Referenced by llvm::TimeRegion::TimeRegion(). |
|
stopTimer - Stop the timer. Definition at line 175 of file Timer.cpp. References TimeRecord::Elapsed, getTimeRecord(), I, TimeRecord::MemUsed, TimeRecord::SystemTime, and TimeRecord::UserTime. Referenced by llvm::TimeRegion::~TimeRegion(). |
|
|