Chromium Code Reviews| 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 (e.g., "outer_size", "inner_size", "objects _count"). | |
|
haraken
2015/04/30 01:45:49
Wrap the comment into 80 characters. The same comm
Primiano Tucci (use gerrit)
2015/04/30 09:07:43
Done.
| |
| 21 // units: the units for the attribute. Gives a hint to the trace-viewer UI about | |
| 22 // the semantics of the attribute. | |
| 23 // Currently supported values are "bytes" and "objects". | |
| 24 // value: the value of the attribute. | |
| 25 virtual void AddScalar(const WebString& name, const char* units, uint64_t va lue) { } | |
| 26 virtual void AddString(const WebString& name, const char* units, const WebSt ring& value) { } | |
| 27 }; | |
| 28 | |
| 29 } // namespace blink | |
| 30 | |
| 31 #endif // WebMemoryAllocatorDump_h | |
| OLD | NEW |