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

Unified Diff: third_party/WebKit/public/web/WebMemoryStatistics.h

Issue 2391423004: Add UMA for PurgeAndSuspend. (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/public/web/WebMemoryStatistics.h
diff --git a/third_party/WebKit/public/web/WebMemoryStatistics.h b/third_party/WebKit/public/web/WebMemoryStatistics.h
new file mode 100644
index 0000000000000000000000000000000000000000..034224cd9b8f2d4889bc9ae241f3791be963ecfa
--- /dev/null
+++ b/third_party/WebKit/public/web/WebMemoryStatistics.h
@@ -0,0 +1,24 @@
+// Copyright 2016 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 WebMemoryStatistics_h
+#define WebMemoryStatistics_h
+
+#include "public/platform/WebCommon.h"
+
+namespace blink {
+
+struct WebMemoryStatistics {
+ size_t partitionAllocTotalAllocatedBytes;
+ size_t blinkGCTotalAllocatedBytes;
+
+ WebMemoryStatistics()
+ : partitionAllocTotalAllocatedBytes(0), blinkGCTotalAllocatedBytes(0) {}
+
+ BLINK_EXPORT static WebMemoryStatistics Get();
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698