Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1245)

Unified Diff: public/platform/WebProcessMemoryDump.h

Issue 1111383002: [tracing] Expose memory-infra tracing infrastructure to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrapping at 80 cols Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/WebMemoryDumpProvider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebProcessMemoryDump.h
diff --git a/public/platform/WebProcessMemoryDump.h b/public/platform/WebProcessMemoryDump.h
new file mode 100644
index 0000000000000000000000000000000000000000..540146a3202a4cd93986c979faeec2ec42a8e837
--- /dev/null
+++ b/public/platform/WebProcessMemoryDump.h
@@ -0,0 +1,33 @@
+// 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 WebProcessMemoryDump_h
+#define WebProcessMemoryDump_h
+
+#include "WebNonCopyable.h"
+#include "WebString.h"
+
+namespace blink {
+
+class WebMemoryAllocatorDump;
+
+// A container which holds all the dumps for the various allocators for a given
+// process. Embedders of WebMemoryDumpProvider are expected to populate a
+// WebProcessMemoryDump instance with the stats of their allocators.
+class BLINK_PLATFORM_EXPORT WebProcessMemoryDump : public WebNonCopyable {
+public:
+ // Creates a new MemoryAllocatorDump with the given name and returns the
+ // empty object back to the caller. |absoluteName| uniquely identifies the
+ // dump within the scope of a ProcessMemoryDump. It is possible to express
+ // nesting by means of a slash-separated path naming (e.g.,
+ // "allocator_name/arena_1/subheap_X").
+ virtual WebMemoryAllocatorDump* createMemoryAllocatorDump(const WebString& absoluteName)
+ {
+ return nullptr;
+ }
+};
+
+} // namespace blink
+
+#endif // WebProcessMemoryDump_h
« no previous file with comments | « public/platform/WebMemoryDumpProvider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698