Deleted Added
sdiff udiff text old ( 208954 ) new ( 210299 )
full compact
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)) {}
241
242NamedRegionTimer::NamedRegionTimer(StringRef Name, StringRef GroupName)
243 : TimeRegion(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 ---