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

Unified Diff: public/platform/WebMemoryAllocatorDump.h

Issue 1159923006: [tracing] Expose AddOwnershipEdge and CreateAllocatorDump with guid to blink. (blink-side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: A blank line. Created 5 years, 7 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 | « no previous file | public/platform/WebProcessMemoryDump.h » ('j') | public/platform/WebProcessMemoryDump.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMemoryAllocatorDump.h
diff --git a/public/platform/WebMemoryAllocatorDump.h b/public/platform/WebMemoryAllocatorDump.h
index 5b3035922c394d3260ad7702a1469411450a6d19..6d2d5c2416a1e4eac55fd45ef6964f14d4bdf8db 100644
--- a/public/platform/WebMemoryAllocatorDump.h
+++ b/public/platform/WebMemoryAllocatorDump.h
@@ -10,6 +10,33 @@
namespace blink {
+// Class which has the guid of the WebMemoryAllocatorDump. The guid can either
+// be uint64_t or WebString.
+struct BLINK_PLATFORM_EXPORT WebMemoryAllocatorDumpGuid {
+ enum GuidType {
+ Int64Type,
Primiano Tucci (use gerrit) 2015/05/29 11:24:53 Technically this is a uint64 not int64, so either
ssid 2015/05/29 15:50:48 Done.
+ StringType
+ };
+
+ const uint64_t guidInt64;
+ const WebString guidString;
+ const GuidType type;
+
+ explicit WebMemoryAllocatorDumpGuid(const uint64_t guid)
+ : guidInt64(guid)
+ , guidString()
+ , type(Int64Type)
+ {
+ }
+
+ explicit WebMemoryAllocatorDumpGuid(const WebString& guid)
+ : guidInt64(0)
+ , guidString(guid)
+ , type(StringType)
+ {
+ }
+};
+
// A container which holds all the attributes of a particular dump for a given
// allocator.
class BLINK_PLATFORM_EXPORT WebMemoryAllocatorDump {
« no previous file with comments | « no previous file | public/platform/WebProcessMemoryDump.h » ('j') | public/platform/WebProcessMemoryDump.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698