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

Unified Diff: src/base/accounting-allocator.h

Issue 2153423002: Track peak Zone memory usage and report it via HeapStatistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « src/api.cc ('k') | src/base/accounting-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/accounting-allocator.h
diff --git a/src/base/accounting-allocator.h b/src/base/accounting-allocator.h
index ce67f3790ef846a02f09b12101cfbf9fbcd29f59..ad2fc988cc89c29d37fc31aa1410a2f5ad277f86 100644
--- a/src/base/accounting-allocator.h
+++ b/src/base/accounting-allocator.h
@@ -21,9 +21,11 @@ class AccountingAllocator final {
void Free(void* memory, size_t bytes);
size_t GetCurrentMemoryUsage() const;
+ size_t GetMaxMemoryUsage() const;
private:
AtomicWord current_memory_usage_ = 0;
+ AtomicWord max_memory_usage_ = 0;
DISALLOW_COPY_AND_ASSIGN(AccountingAllocator);
};
« no previous file with comments | « src/api.cc ('k') | src/base/accounting-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698