Chromium Code Reviews| Index: public/platform/WebMemoryAllocatorDump.h |
| diff --git a/public/platform/WebMemoryAllocatorDump.h b/public/platform/WebMemoryAllocatorDump.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..68fe4be933161dff6effe28e59a91be43884f766 |
| --- /dev/null |
| +++ b/public/platform/WebMemoryAllocatorDump.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebMemoryAllocatorDump_h |
| +#define WebMemoryAllocatorDump_h |
| + |
| +#include "WebCommon.h" |
| +#include "WebNonCopyable.h" |
| +#include "WebString.h" |
| + |
| +namespace blink { |
| + |
| +// A container which holds all the attributes of a particular dump for a given |
| +// allocator. |
| +class BLINK_PLATFORM_EXPORT WebMemoryAllocatorDump : public WebNonCopyable { |
| +public: |
| + // Adds a scalar attribute to the dump. |
| + // Arguments: |
| + // 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.
|
| + // units: the units for the attribute. Gives a hint to the trace-viewer UI about |
| + // the semantics of the attribute. |
| + // Currently supported values are "bytes" and "objects". |
| + // value: the value of the attribute. |
| + virtual void AddScalar(const WebString& name, const char* units, uint64_t value) { } |
| + virtual void AddString(const WebString& name, const char* units, const WebString& value) { } |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebMemoryAllocatorDump_h |