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

Unified Diff: src/heap.h

Issue 460042: Merge bleeding_edge revision 3406 and 3410 to 1.3 branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/1.3/
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)
@@ -230,6 +230,7 @@
// Forward declaration of the GCTracer class.
class GCTracer;
+class HeapStats;
// The all static Heap captures the interface to the global object heap.
@@ -915,6 +916,8 @@
static RootListIndex RootIndexForExternalArrayType(
ExternalArrayType array_type);
+ static void RecordStats(HeapStats* stats);
+
private:
static int reserved_semispace_size_;
static int max_semispace_size_;
@@ -1147,6 +1150,29 @@
};
+class HeapStats {
+ public:
+ 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