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

Side by Side Diff: third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp

Issue 2795923002: Rewrite references to "wtf/" to "platform/wtf/" in platform/heap. (Closed)
Patch Set: Same as PS1; PS1 lacks some files for some reason. Created 3 years, 8 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 "platform/heap/BlinkGCMemoryDumpProvider.h" 5 #include "platform/heap/BlinkGCMemoryDumpProvider.h"
6 6
7 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" 7 #include "base/trace_event/heap_profiler_allocation_context_tracker.h"
8 #include "base/trace_event/heap_profiler_allocation_register.h" 8 #include "base/trace_event/heap_profiler_allocation_register.h"
9 #include "base/trace_event/memory_allocator_dump.h" 9 #include "base/trace_event/memory_allocator_dump.h"
10 #include "base/trace_event/process_memory_dump.h" 10 #include "base/trace_event/process_memory_dump.h"
11 #include "base/trace_event/trace_event_memory_overhead.h" 11 #include "base/trace_event/trace_event_memory_overhead.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "platform/instrumentation/tracing/web_memory_allocator_dump.h" 13 #include "platform/instrumentation/tracing/web_memory_allocator_dump.h"
14 #include "platform/wtf/StdLibExtras.h"
15 #include "platform/wtf/Threading.h"
14 #include "public/platform/Platform.h" 16 #include "public/platform/Platform.h"
15 #include "wtf/StdLibExtras.h"
16 #include "wtf/Threading.h"
17 17
18 namespace blink { 18 namespace blink {
19 namespace { 19 namespace {
20 20
21 void dumpMemoryTotals(base::trace_event::ProcessMemoryDump* memoryDump) { 21 void dumpMemoryTotals(base::trace_event::ProcessMemoryDump* memoryDump) {
22 base::trace_event::MemoryAllocatorDump* allocatorDump = 22 base::trace_event::MemoryAllocatorDump* allocatorDump =
23 memoryDump->CreateAllocatorDump("blink_gc"); 23 memoryDump->CreateAllocatorDump("blink_gc");
24 allocatorDump->AddScalar("size", "bytes", ProcessHeap::totalAllocatedSpace()); 24 allocatorDump->AddScalar("size", "bytes", ProcessHeap::totalAllocatedSpace());
25 25
26 base::trace_event::MemoryAllocatorDump* objectsDump = 26 base::trace_event::MemoryAllocatorDump* objectsDump =
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 m_allocationRegister->Insert(address, size, context); 138 m_allocationRegister->Insert(address, size, context);
139 } 139 }
140 140
141 void BlinkGCMemoryDumpProvider::remove(Address address) { 141 void BlinkGCMemoryDumpProvider::remove(Address address) {
142 MutexLocker locker(m_allocationRegisterMutex); 142 MutexLocker locker(m_allocationRegisterMutex);
143 if (m_allocationRegister) 143 if (m_allocationRegister)
144 m_allocationRegister->Remove(address); 144 m_allocationRegister->Remove(address);
145 } 145 }
146 146
147 } // namespace blink 147 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698