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

Unified Diff: base/profiler/alternate_timer.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/alternate_timer.h ('k') | base/profiler/native_stack_sampler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/alternate_timer.cc
diff --git a/base/profiler/alternate_timer.cc b/base/profiler/alternate_timer.cc
deleted file mode 100644
index 02763cd9ef9204db1bb39395fb9b1cb429097d3b..0000000000000000000000000000000000000000
--- a/base/profiler/alternate_timer.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 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/alternate_timer.h"
-
-#include "base/basictypes.h"
-
-namespace {
-
-tracked_objects::NowFunction* g_time_function = NULL;
-tracked_objects::TimeSourceType g_time_source_type =
- tracked_objects::TIME_SOURCE_TYPE_WALL_TIME;
-
-} // anonymous namespace
-
-namespace tracked_objects {
-
-const char kAlternateProfilerTime[] = "CHROME_PROFILER_TIME";
-
-// Set an alternate timer function to replace the OS time function when
-// profiling.
-void SetAlternateTimeSource(NowFunction* now_function, TimeSourceType type) {
- g_time_function = now_function;
- g_time_source_type = type;
-}
-
-NowFunction* GetAlternateTimeSource() {
- return g_time_function;
-}
-
-TimeSourceType GetTimeSourceType() {
- return g_time_source_type;
-}
-
-} // namespace tracked_objects
« no previous file with comments | « base/profiler/alternate_timer.h ('k') | base/profiler/native_stack_sampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698