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

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

Issue 1881983003: Move PartitionAlloc related things into wtf/allocator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/PartitionAllocMemoryDumpProvider.h" 5 #include "platform/PartitionAllocMemoryDumpProvider.h"
6 6
7 #include "base/trace_event/heap_profiler_allocation_context.h" 7 #include "base/trace_event/heap_profiler_allocation_context.h"
8 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" 8 #include "base/trace_event/heap_profiler_allocation_context_tracker.h"
9 #include "base/trace_event/heap_profiler_allocation_register.h" 9 #include "base/trace_event/heap_profiler_allocation_register.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 "public/platform/WebMemoryAllocatorDump.h" 12 #include "public/platform/WebMemoryAllocatorDump.h"
13 #include "public/platform/WebProcessMemoryDump.h" 13 #include "public/platform/WebProcessMemoryDump.h"
14 #include "wtf/Partitions.h" 14 #include "wtf/allocator/Partitions.h"
15 #include "wtf/text/WTFString.h" 15 #include "wtf/text/WTFString.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 namespace { 19 namespace {
20 20
21 using namespace WTF; 21 using namespace WTF;
22 22
23 void reportAllocation(void* address, size_t size, const char* typeName) 23 void reportAllocation(void* address, size_t size, const char* typeName)
24 { 24 {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 void PartitionAllocMemoryDumpProvider::remove(void* address) 180 void PartitionAllocMemoryDumpProvider::remove(void* address)
181 { 181 {
182 MutexLocker locker(m_allocationRegisterMutex); 182 MutexLocker locker(m_allocationRegisterMutex);
183 if (m_allocationRegister) 183 if (m_allocationRegister)
184 m_allocationRegister->Remove(address); 184 m_allocationRegister->Remove(address);
185 } 185 }
186 186
187 } // namespace blink 187 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698