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

Side by Side Diff: third_party/WebKit/Source/platform/WebProcessMemoryDumpImpl.cpp

Issue 1660383002: Refactoring: Move some classes from content/child to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Syntax Error :-( Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/web_process_memory_dump_impl.h" 5 #include "platform/WebProcessMemoryDumpImpl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/discardable_memory.h" 9 #include "base/memory/discardable_memory.h"
10 #include "base/trace_event/heap_profiler_heap_dump_writer.h" 10 #include "base/trace_event/heap_profiler_heap_dump_writer.h"
11 #include "base/trace_event/process_memory_dump.h" 11 #include "base/trace_event/process_memory_dump.h"
12 #include "base/trace_event/trace_event_argument.h" 12 #include "base/trace_event/trace_event_argument.h"
13 #include "base/trace_event/trace_event_memory_overhead.h" 13 #include "base/trace_event/trace_event_memory_overhead.h"
14 #include "content/child/web_memory_allocator_dump_impl.h" 14 #include "platform/WebMemoryAllocatorDumpImpl.h"
15 #include "skia/ext/skia_trace_memory_dump_impl.h" 15 #include "skia/ext/skia_trace_memory_dump_impl.h"
16 16
17 namespace content { 17 namespace blink {
18 18
19 WebProcessMemoryDumpImpl::WebProcessMemoryDumpImpl() 19 WebProcessMemoryDumpImpl::WebProcessMemoryDumpImpl()
20 : owned_process_memory_dump_( 20 : owned_process_memory_dump_(
21 new base::trace_event::ProcessMemoryDump(nullptr)), 21 new base::trace_event::ProcessMemoryDump(nullptr)),
22 process_memory_dump_(owned_process_memory_dump_.get()), 22 process_memory_dump_(owned_process_memory_dump_.get()),
23 level_of_detail_(base::trace_event::MemoryDumpLevelOfDetail::DETAILED) {} 23 level_of_detail_(base::trace_event::MemoryDumpLevelOfDetail::DETAILED) {}
24 24
25 WebProcessMemoryDumpImpl::WebProcessMemoryDumpImpl( 25 WebProcessMemoryDumpImpl::WebProcessMemoryDumpImpl(
26 base::trace_event::MemoryDumpLevelOfDetail level_of_detail, 26 base::trace_event::MemoryDumpLevelOfDetail level_of_detail,
27 base::trace_event::ProcessMemoryDump* process_memory_dump) 27 base::trace_event::ProcessMemoryDump* process_memory_dump)
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 process_memory_dump_->session_state(); 174 process_memory_dump_->session_state();
175 scoped_refptr<base::trace_event::TracedValue> heap_dump = ExportHeapDump( 175 scoped_refptr<base::trace_event::TracedValue> heap_dump = ExportHeapDump(
176 bytes_by_context, 176 bytes_by_context,
177 session_state->stack_frame_deduplicator(), 177 session_state->stack_frame_deduplicator(),
178 session_state->type_name_deduplicator()); 178 session_state->type_name_deduplicator());
179 process_memory_dump_->AddHeapDump(allocator_name, heap_dump); 179 process_memory_dump_->AddHeapDump(allocator_name, heap_dump);
180 overhead.DumpInto("tracing/heap_profiler", process_memory_dump_); 180 overhead.DumpInto("tracing/heap_profiler", process_memory_dump_);
181 } 181 }
182 182
183 } // namespace content 183 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698