OLD | NEW |
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 "config.h" | 5 #include "config.h" |
6 #include "platform/PartitionAllocMemoryDumpProvider.h" | 6 #include "platform/PartitionAllocMemoryDumpProvider.h" |
7 | 7 |
8 #include "public/platform/WebMemoryAllocatorDump.h" | 8 #include "public/platform/WebMemoryAllocatorDump.h" |
9 #include "public/platform/WebProcessMemoryDump.h" | 9 #include "public/platform/WebProcessMemoryDump.h" |
10 #include "wtf/Partitions.h" | 10 #include "wtf/Partitions.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 WebMemoryAllocatorDump* allocatedObjectsDump = memoryDump->createMemoryAlloc
atorDump( | 103 WebMemoryAllocatorDump* allocatedObjectsDump = memoryDump->createMemoryAlloc
atorDump( |
104 String::format("%s/allocated_objects", kPartitionAllocDumpName)); | 104 String::format("%s/allocated_objects", kPartitionAllocDumpName)); |
105 allocatedObjectsDump->AddScalar("size", "bytes", partitionStatsDumper.totalA
ctiveBytes()); | 105 allocatedObjectsDump->AddScalar("size", "bytes", partitionStatsDumper.totalA
ctiveBytes()); |
106 memoryDump->AddOwnershipEdge(allocatedObjectsDump->guid(), partitionsDump->g
uid()); | 106 memoryDump->AddOwnershipEdge(allocatedObjectsDump->guid(), partitionsDump->g
uid()); |
107 | 107 |
108 return true; | 108 return true; |
109 } | 109 } |
110 | 110 |
111 PartitionAllocMemoryDumpProvider::PartitionAllocMemoryDumpProvider() | 111 PartitionAllocMemoryDumpProvider::PartitionAllocMemoryDumpProvider() |
112 { | 112 { |
| 113 Partitions::setAllocatorPoolNameForTracing(kPartitionAllocPoolName); |
113 } | 114 } |
114 | 115 |
115 PartitionAllocMemoryDumpProvider::~PartitionAllocMemoryDumpProvider() | 116 PartitionAllocMemoryDumpProvider::~PartitionAllocMemoryDumpProvider() |
116 { | 117 { |
117 } | 118 } |
118 | 119 |
119 } // namespace blink | 120 } // namespace blink |
OLD | NEW |