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

Unified Diff: src/heap.h

Issue 4888001: Provide more accurate results about used heap size via GetHeapStatistics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years, 1 month 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/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index c37ced39399830e48d4fd59f1ae420f1ec3c0fb4..fd0e9b5c33e6da0ad3ea61346bef37ba9589bdc5 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -275,8 +275,12 @@ class Heap : public AllStatic {
// Returns the maximum object size in paged space.
static inline int MaxObjectSizeInPagedSpace();
- // Returns of size of all objects residing in the heap.
+ // Returns size of all objects residing in the heap.
static intptr_t SizeOfObjects();
+ // Does the same as the previous function, but more precisely,
Mads Ager (chromium) 2010/11/12 11:11:27 Hmm, this looks strange. Computing the same but ge
+ // by iterating heap contents. The resulting number is usually
+ // ~10% lower.
+ static intptr_t SizeOfObjectsSlow();
// Return the starting address and a mask for the new space. And-masking an
// address with the mask will result in the start address of the new space
« no previous file with comments | « src/api.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698