Remove DnsConfigServiceTest.GetSystemConfig test
[chromium-blink-merge.git] / content / child / web_memory_allocator_dump_impl.cc
blob6393521299fab0644515844e2f3847c32503b6e0
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/child/web_memory_allocator_dump_impl.h"
7 #include "base/trace_event/memory_allocator_dump.h"
9 namespace content {
11 WebMemoryAllocatorDumpImpl::WebMemoryAllocatorDumpImpl(
12 base::trace_event::MemoryAllocatorDump* memory_allocator_dump)
13 : memory_allocator_dump_(memory_allocator_dump) {
16 WebMemoryAllocatorDumpImpl::~WebMemoryAllocatorDumpImpl() {
19 void WebMemoryAllocatorDumpImpl::AddScalar(const blink::WebString& name,
20 const char* units,
21 uint64 value) {
22 memory_allocator_dump_->AddScalar(name.utf8(), units, value);
25 void WebMemoryAllocatorDumpImpl::AddScalarF(const blink::WebString& name,
26 const char* units,
27 double value) {
28 memory_allocator_dump_->AddScalarF(name.utf8(), units, value);
31 void WebMemoryAllocatorDumpImpl::AddString(const blink::WebString& name,
32 const char* units,
33 const blink::WebString& value) {
34 memory_allocator_dump_->AddString(name.utf8(), units, value.utf8());
36 } // namespace content