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

Unified Diff: src/heap.h

Issue 465026: Push bleeding_edge revision 3387, 3390 to trunk in order to fix test.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years 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/global-handles.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
===================================================================
--- src/heap.h (revision 3407)
+++ src/heap.h (working copy)
@@ -219,6 +219,7 @@
// Forward declaration of the GCTracer class.
class GCTracer;
+class HeapStats;
// The all static Heap captures the interface to the global object heap.
@@ -895,6 +896,8 @@
static RootListIndex RootIndexForExternalArrayType(
ExternalArrayType array_type);
+ static void RecordStats(HeapStats* stats);
+
private:
static int reserved_semispace_size_;
static int max_semispace_size_;
@@ -1127,6 +1130,28 @@
};
+struct HeapStats {
+ int new_space_size;
+ int new_space_capacity;
+ int old_pointer_space_size;
+ int old_pointer_space_capacity;
+ int old_data_space_size;
+ int old_data_space_capacity;
+ int code_space_size;
+ int code_space_capacity;
+ int map_space_size;
+ int map_space_capacity;
+ int cell_space_size;
+ int cell_space_capacity;
+ int lo_space_size;
+ int global_handle_count;
+ int weak_global_handle_count;
+ int pending_global_handle_count;
+ int near_death_global_handle_count;
+ int destroyed_global_handle_count;
+};
+
+
class AlwaysAllocateScope {
public:
AlwaysAllocateScope() {
« no previous file with comments | « src/global-handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698