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

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

Issue 2350423003: [Tentaive patch for discussion] Add Purge+Suspend metrics as UMA.
Patch Set: Fixed misuse of CanPurgeAndSuspend Created 4 years, 3 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 | « third_party/WebKit/public/BUILD.gn ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..483a06dcbe902339917c461013cad4eaa29dd451
--- /dev/null
+++ b/third_party/WebKit/public/web/WebMemoryStatistics.h
@@ -0,0 +1,31 @@
+// 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 partitionAllocTotalBytes;
+ size_t blinkGCTotalBytes;
+ size_t blinkGCTotalAllocatedBytes;
+
+ WebMemoryStatistics()
+ : partitionAllocTotalAllocatedBytes(0)
+ , partitionAllocTotalBytes(0)
+ , blinkGCTotalBytes(0)
+ , blinkGCTotalAllocatedBytes(0)
+ {
+ }
+
+ BLINK_EXPORT static WebMemoryStatistics Get();
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698