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 void Timer::startTimer() {
139 assert(!Running && "Cannot start a running timer");
144 void Timer::stopTimer() {
145 assert(Running && "Cannot stop a paused timer");
151 void Timer::clear() {
185 typedef StringMap<Timer> Name2TimerMap;
196 Timer &get(StringRef Name, StringRef GroupName) {
204 Timer &T = GroupEntry.second[Name];
216 static Timer &getNamedRegionTimer(StringRef Name) {
219 Timer &T = (*NamedTimers)[Name];
254 // If the timer group is destroyed before the timers it owns, accumulate and
267 void TimerGroup::removeTimer(Timer &T) {
270 // If the timer was started, move its data to TimersToPrint.
276 // Unlink the timer from our list.
290 void TimerGroup::addTimer(Timer &T) {
293 // Add the timer to our list.
356 for (Timer *T = FirstTimer; T; T = T->Next) {