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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/trace_helper.cc

Issue 2837323002: Merged all PointerToId functions into TraceHelper::PointerToString. (Closed)
Patch Set: Converted TraceHelper the class to trace_helper the namespace. Created 3 years, 7 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
Index: third_party/WebKit/Source/platform/scheduler/base/trace_helper.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/trace_helper.cc b/third_party/WebKit/Source/platform/scheduler/base/trace_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5fbb9f77b871cbe12a411aec4bc4c1fe873221be
--- /dev/null
+++ b/third_party/WebKit/Source/platform/scheduler/base/trace_helper.cc
@@ -0,0 +1,22 @@
+// Copyright 2017 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 "platform/scheduler/base/trace_helper.h"
+
+#include "base/format_macros.h"
+#include "base/strings/stringprintf.h"
+
+namespace blink {
+namespace scheduler {
+namespace trace_helper {
+
+std::string PointerToString(const void* pointer) {
+ return base::StringPrintf(
+ "0x%" PRIx64,
+ static_cast<uint64_t>(reinterpret_cast<uintptr_t>(pointer)));
+}
+
+} // namespace trace_helper
+} // namespace scheduler
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698