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 bool Enabled) 241 : TimeRegion(!Enabled ? 0 : &getNamedRegionTimer(Name)) {} |
242 |
243NamedRegionTimer::NamedRegionTimer(StringRef Name, StringRef GroupName, 244 bool Enabled) 245 : TimeRegion(!Enabled ? 0 : &NamedGroupedTimers->get(Name, GroupName)) {} |
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 --- |