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

Unified Diff: base/profiler/alternate_timer.cc

Issue 10169039: Revert 133773 - [UMA] Add performance profile data to UMA uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/tracked_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/alternate_timer.cc
===================================================================
--- base/profiler/alternate_timer.cc (revision 133778)
+++ base/profiler/alternate_timer.cc (working copy)
@@ -6,25 +6,20 @@
#include "base/logging.h"
-namespace {
-
-tracked_objects::NowFunction* g_time_function = NULL;
-
-} // anonymous namespace
-
namespace tracked_objects {
+static NowFunction* g_time_function = NULL;
+
const char kAlternateProfilerTime[] = "CHROME_PROFILER_TIME";
// Set an alternate timer function to replace the OS time function when
// profiling.
void SetAlternateTimeSource(NowFunction* now_function) {
- DCHECK_EQ(reinterpret_cast<NowFunction*>(NULL), g_time_function);
+ DCHECK_EQ(g_time_function, reinterpret_cast<NowFunction*>(NULL));
g_time_function = now_function;
}
-NowFunction* GetAlternateTimeSource() {
+extern NowFunction* GetAlternateTimeSource() {
return g_time_function;
}
-
-} // namespace tracked_objects
+} // tracked_objects
« no previous file with comments | « base/profiler/alternate_timer.h ('k') | base/tracked_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698