Home | History | Annotate | Download | only in Support

Lines Matching refs:Timer

1 //===-- Timer.cpp - Interval Timing Support -------------------------------===//
14 #include "llvm/Support/Timer.h"
49 cl::desc("File to append -stats and -timer output to"),
95 // Timer Implementation
98 void Timer::init(StringRef N) {
102 void Timer::init(StringRef N, TimerGroup &tg) {
103 assert(!TG && "Timer already initialized");
110 Timer::~Timer() {
138 static ManagedStatic<std::vector<Timer*> > ActiveTimers;
140 void Timer::startTimer() {
146 void Timer::stopTimer() {
152 std::vector<Timer*>::iterator I =
188 typedef StringMap<Timer> Name2TimerMap;
199 Timer &get(StringRef Name, StringRef GroupName) {
207 Timer &T = GroupEntry.second[Name];
219 static Timer &getNamedRegionTimer(StringRef Name) {
222 Timer &T = (*NamedTimers)[Name];
257 // If the timer group is destroyed before the timers it owns, accumulate and
270 void TimerGroup::removeTimer(Timer &T) {
273 // If the timer was started, move its data to TimersToPrint.
279 // Unlink the timer from our list.
293 void TimerGroup::addTimer(Timer &T) {
296 // Add the timer to our list.
359 for (Timer *T = FirstTimer; T; T = T->Next) {