1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/profiler/scoped_tracker.h"
9 namespace tracked_objects
{
13 ScopedProfile::Mode g_scoped_profile_mode
= ScopedProfile::DISABLED
;
18 void ScopedTracker::Enable() {
19 g_scoped_profile_mode
= ScopedProfile::ENABLED
;
22 ScopedTracker::ScopedTracker(const Location
& location
)
23 : scoped_profile_(location
, g_scoped_profile_mode
) {
26 } // namespace tracked_objects