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

Unified Diff: third_party/WebKit/Source/platform/PurgeableVector.h

Issue 1369253002: Add Web Resources usage to chrome://tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache2_base
Patch Set: Fix names. Created 5 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/Source/platform/PurgeableVector.h
diff --git a/third_party/WebKit/Source/platform/PurgeableVector.h b/third_party/WebKit/Source/platform/PurgeableVector.h
index c1734f85c3afa45f12e575e74c6423297f32ad96..e07c61b9251aeb6c18bb9da2dabf389eaf23eab8 100644
--- a/third_party/WebKit/Source/platform/PurgeableVector.h
+++ b/third_party/WebKit/Source/platform/PurgeableVector.h
@@ -39,6 +39,7 @@
namespace blink {
class WebDiscardableMemory;
+class WebProcessMemoryDump;
// A simple vector implementation that supports purgeable memory. The vector is
// already locked at construction and locking uses an internal counter which
@@ -90,6 +91,8 @@ public:
// doing then you should probably not call this method.
void reserveCapacity(size_t capacity);
+ void onMemoryDump(const String& dumpPrefix, WebProcessMemoryDump*) const;
+
private:
enum PurgeableAllocationStrategy {
UseExactCapacity,

Powered by Google App Engine
This is Rietveld 408576698