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

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

Issue 2299753002: Made zone segments aligned in memory and included a pointer to the zone in the header. Larger objec…
Patch Set: Added a zone segment pool for small segments to avoid frequent sys calls 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 | « no previous file | 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 4e1baf18d4d57a37510f98ae4fa10d65a7c9f7ae..9983d583c57a0af6db8d76d5f3727ffc58e9ddbc 100644
--- a/src/base/accounting-allocator.h
+++ b/src/base/accounting-allocator.h
@@ -20,6 +20,8 @@ class AccountingAllocator {
virtual void* Allocate(size_t bytes);
virtual void Free(void* memory, size_t bytes);
+ virtual void ChangeCurrentMemoryUsage(const int64_t);
+
size_t GetCurrentMemoryUsage() const;
size_t GetMaxMemoryUsage() const;
« no previous file with comments | « no previous file | src/base/accounting-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698