| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef WebProcessMemoryDump_h |
| 6 #define WebProcessMemoryDump_h |
| 7 |
| 8 #include "WebNonCopyable.h" |
| 9 #include "WebString.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class WebMemoryAllocatorDump; |
| 14 |
| 15 // A container which holds all the dumps for the various allocators for a given
process. |
| 16 // Embedders of WebMemoryDumpProvider are expected to populate a WebProcessMemor
yDump instance with |
| 17 // the stats of their allocators. |
| 18 class BLINK_PLATFORM_EXPORT WebProcessMemoryDump : public WebNonCopyable { |
| 19 public: |
| 20 // Creates a new MemoryAllocatorDump with the given name and returns the emp
ty object back to |
| 21 // the caller. |absoluteName| uniquely identifies the the dump within the sc
ope of a |
| 22 // ProcessMemoryDump. It is possible to express nesting by means of a slash-
separated path |
| 23 // semantic (e.g., "allocator_name/arena-1/sub-heap-X"). |
| 24 virtual WebMemoryAllocatorDump* createMemoryAllocatorDump(const WebString& a
bsoluteName) |
| 25 { |
| 26 return nullptr; |
| 27 } |
| 28 }; |
| 29 |
| 30 } // namespace blink |
| 31 |
| 32 #endif // WebProcessMemoryDump_h |
| OLD | NEW |