| 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 WebMemoryAllocatorDump_h |
| 6 #define WebMemoryAllocatorDump_h |
| 7 |
| 8 #include "WebCommon.h" |
| 9 #include "WebNonCopyable.h" |
| 10 #include "WebString.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 // A container which holds all the attributes of a particular dump for a given |
| 15 // allocator. |
| 16 class BLINK_PLATFORM_EXPORT WebMemoryAllocatorDump : public WebNonCopyable { |
| 17 public: |
| 18 // Adds a scalar attribute to the dump. |
| 19 // Arguments: |
| 20 // name: name of the attribute. Typical names, emitted by most allocators |
| 21 // dump providers are: "outer_size", "inner_size", "objects_count". |
| 22 // units: the units for the attribute. Gives a hint to the trace-viewer UI |
| 23 // about the semantics of the attribute. |
| 24 // Currently supported values are "bytes" and "objects". |
| 25 // value: the value of the attribute. |
| 26 virtual void AddScalar(const WebString& name, const char* units, uint64_t va
lue) { } |
| 27 virtual void AddString(const WebString& name, const char* units, const WebSt
ring& value) { } |
| 28 }; |
| 29 |
| 30 } // namespace blink |
| 31 |
| 32 #endif // WebMemoryAllocatorDump_h |
| OLD | NEW |