| Index: third_party/WebKit/Source/platform/web_memory_allocator_dump.cc
|
| diff --git a/third_party/WebKit/Source/platform/web_memory_allocator_dump.cc b/third_party/WebKit/Source/platform/web_memory_allocator_dump.cc
|
| deleted file mode 100644
|
| index 01322078305060f0a5f8a37cf23a96278807061e..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/platform/web_memory_allocator_dump.cc
|
| +++ /dev/null
|
| @@ -1,45 +0,0 @@
|
| -// Copyright 2015 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/web_memory_allocator_dump.h"
|
| -
|
| -#include "base/trace_event/memory_allocator_dump.h"
|
| -#include "wtf/text/StringUTF8Adaptor.h"
|
| -
|
| -namespace blink {
|
| -
|
| -WebMemoryAllocatorDump::WebMemoryAllocatorDump(
|
| - base::trace_event::MemoryAllocatorDump* memory_allocator_dump)
|
| - : memory_allocator_dump_(memory_allocator_dump),
|
| - guid_(memory_allocator_dump->guid().ToUint64()) {
|
| -}
|
| -
|
| -WebMemoryAllocatorDump::~WebMemoryAllocatorDump() {
|
| -}
|
| -
|
| -void WebMemoryAllocatorDump::addScalar(const char* name,
|
| - const char* units,
|
| - uint64_t value) {
|
| - memory_allocator_dump_->AddScalar(name, units, value);
|
| -}
|
| -
|
| -void WebMemoryAllocatorDump::addScalarF(const char* name,
|
| - const char* units,
|
| - double value) {
|
| - memory_allocator_dump_->AddScalarF(name, units, value);
|
| -}
|
| -
|
| -void WebMemoryAllocatorDump::addString(const char* name,
|
| - const char* units,
|
| - const String& value) {
|
| - StringUTF8Adaptor adapter(value);
|
| - std::string utf8(adapter.data(), adapter.length());
|
| - memory_allocator_dump_->AddString(name, units, utf8);
|
| -}
|
| -
|
| -WebMemoryAllocatorDumpGuid WebMemoryAllocatorDump::guid() const {
|
| - return guid_;
|
| -}
|
| -
|
| -} // namespace blink
|
|
|