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

Unified Diff: src/heap.h

Issue 10961042: Implement committed physical memory stats for Linux. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix formatting. Created 8 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
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 46ec6cf660f841ffde53d4a47d1298c4ed217afa..c7597923441d2da78918dc3f795b276a4bdb6175 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -486,6 +486,9 @@ class Heap {
// Returns the amount of executable memory currently committed for the heap.
intptr_t CommittedMemoryExecutable();
+ // Returns the amount of phyical memory currently committed for the heap.
+ size_t CommittedPhysicalMemory();
Yang 2012/09/24 14:05:35 Any reason why this is a size_t while the rest are
alph-g 2012/09/24 14:09:59 I have no idea why the rest are intptr_t. The retu
Michael Starzinger 2012/09/27 09:46:16 Yeah, the others should be size_t as well I guess.
+
// Returns the available bytes in space w/o growing.
// Heap doesn't guarantee that it can allocate an object that requires
// all available bytes. Check MaxHeapObjectSize() instead.

Powered by Google App Engine
This is Rietveld 408576698