| Index: third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
|
| diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
|
| index 1c3cd00bfe7a0303b2cde56241e11283888b371b..a35037ac3b5cb8b2c0bca2a80b69c1e0f3d98fd9 100644
|
| --- a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
|
| +++ b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
|
| @@ -6,13 +6,12 @@
|
|
|
| #include <cstdint>
|
|
|
| -#include "base/format_macros.h"
|
| #include "base/logging.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/optional.h"
|
| -#include "base/strings/stringprintf.h"
|
| #include "platform/WebFrameScheduler.h"
|
| #include "platform/scheduler/base/real_time_domain.h"
|
| +#include "platform/scheduler/base/trace_helper.h"
|
| #include "platform/scheduler/child/scheduler_tqm_delegate.h"
|
| #include "platform/scheduler/renderer/budget_pool.h"
|
| #include "platform/scheduler/renderer/renderer_scheduler_impl.h"
|
| @@ -64,12 +63,6 @@ base::Optional<T> Max(const base::Optional<T>& a, const base::Optional<T>& b) {
|
| return std::max(a.value(), b.value());
|
| }
|
|
|
| -std::string PointerToId(void* pointer) {
|
| - return base::StringPrintf(
|
| - "0x%" PRIx64,
|
| - static_cast<uint64_t>(reinterpret_cast<uintptr_t>(pointer)));
|
| -}
|
| -
|
| } // namespace
|
|
|
| TaskQueueThrottler::TaskQueueThrottler(
|
| @@ -441,7 +434,8 @@ void TaskQueueThrottler::AsValueInto(base::trace_event::TracedValue* state,
|
|
|
| state->BeginDictionary("queue_details");
|
| for (const auto& map_entry : queue_details_) {
|
| - state->BeginDictionaryWithCopiedName(PointerToId(map_entry.first));
|
| + state->BeginDictionaryWithCopiedName(
|
| + TraceHelper::PointerToString(map_entry.first));
|
|
|
| state->SetInteger("throttling_ref_count",
|
| map_entry.second.throttling_ref_count);
|
|
|