Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2813)

Unified Diff: base/profiler/scoped_profile.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/profiler/scoped_profile.h ('k') | base/profiler/scoped_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/scoped_profile.cc
diff --git a/base/profiler/scoped_profile.cc b/base/profiler/scoped_profile.cc
deleted file mode 100644
index f06a8c6f5dd68fafe34b90627acf8808499c7552..0000000000000000000000000000000000000000
--- a/base/profiler/scoped_profile.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/profiler/scoped_profile.h"
-
-#include "base/location.h"
-#include "base/tracked_objects.h"
-
-
-namespace tracked_objects {
-
-
-ScopedProfile::ScopedProfile(const Location& location, Mode mode)
- : birth_(NULL) {
- if (mode == DISABLED)
- return;
-
- birth_ = ThreadData::TallyABirthIfActive(location);
- if (!birth_)
- return;
-
- stopwatch_.Start();
-}
-
-ScopedProfile::~ScopedProfile() {
- if (!birth_)
- return;
-
- stopwatch_.Stop();
- ThreadData::TallyRunInAScopedRegionIfTracking(birth_, stopwatch_);
-}
-
-} // namespace tracked_objects
« no previous file with comments | « base/profiler/scoped_profile.h ('k') | base/profiler/scoped_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698