Home | History | Annotate | Download | only in Support

Lines Matching defs:Timer

1 //===-- Timer.cpp - Interval Timing Support -------------------------------===//
14 #include "llvm/Support/Timer.h"
52 cl::desc("File to append -stats and -timer output to"),
100 // Timer Implementation
103 void Timer::init(StringRef N) {
104 assert(TG == 0 && "Timer already initialized");
111 void Timer::init(StringRef N, TimerGroup &tg) {
112 assert(TG == 0 && "Timer already initialized");
119 Timer::~Timer() {
147 static ManagedStatic<std::vector<Timer*> > ActiveTimers;
149 void Timer::startTimer() {
155 void Timer::stopTimer() {
161 std::vector<Timer*>::iterator I =
197 typedef StringMap<Timer> Name2TimerMap;
208 Timer &get(StringRef Name, StringRef GroupName) {
216 Timer &T = GroupEntry.second[Name];
228 static Timer &getNamedRegionTimer(StringRef Name) {
231 Timer &T = (*NamedTimers)[Name];
266 // If the timer group is destroyed before the timers it owns, accumulate and
279 void TimerGroup::removeTimer(Timer &T) {
282 // If the timer was started, move its data to TimersToPrint.
288 // Unlink the timer from our list.
303 void TimerGroup::addTimer(Timer &T) {
306 // Add the timer to our list.
369 for (Timer *T = FirstTimer; T; T = T->Next) {