| 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
|
|
|