Deleted Added
full compact
Timer.cpp (208954) Timer.cpp (210299)
1//===-- Timer.cpp - Interval Timing Support -------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 222 unchanged lines hidden (view full) ---

231 sys::SmartScopedLock<true> L(*TimerLock);
232
233 Timer &T = (*NamedTimers)[Name];
234 if (!T.isInitialized())
235 T.init(Name);
236 return T;
237}
238
1//===-- Timer.cpp - Interval Timing Support -------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 222 unchanged lines hidden (view full) ---

231 sys::SmartScopedLock<true> L(*TimerLock);
232
233 Timer &T = (*NamedTimers)[Name];
234 if (!T.isInitialized())
235 T.init(Name);
236 return T;
237}
238
239NamedRegionTimer::NamedRegionTimer(StringRef Name)
240 : TimeRegion(getNamedRegionTimer(Name)) {}
239NamedRegionTimer::NamedRegionTimer(StringRef Name,
240 bool Enabled)
241 : TimeRegion(!Enabled ? 0 : &getNamedRegionTimer(Name)) {}
241
242
242NamedRegionTimer::NamedRegionTimer(StringRef Name, StringRef GroupName)
243 : TimeRegion(NamedGroupedTimers->get(Name, GroupName)) {}
243NamedRegionTimer::NamedRegionTimer(StringRef Name, StringRef GroupName,
244 bool Enabled)
245 : TimeRegion(!Enabled ? 0 : &NamedGroupedTimers->get(Name, GroupName)) {}
244
245//===----------------------------------------------------------------------===//
246// TimerGroup Implementation
247//===----------------------------------------------------------------------===//
248
249/// TimerGroupList - This is the global list of TimerGroups, maintained by the
250/// TimerGroup ctor/dtor and is protected by the TimerLock lock.
251static TimerGroup *TimerGroupList = 0;

--- 140 unchanged lines hidden ---
246
247//===----------------------------------------------------------------------===//
248// TimerGroup Implementation
249//===----------------------------------------------------------------------===//
250
251/// TimerGroupList - This is the global list of TimerGroups, maintained by the
252/// TimerGroup ctor/dtor and is protected by the TimerLock lock.
253static TimerGroup *TimerGroupList = 0;

--- 140 unchanged lines hidden ---