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

Side by Side Diff: src/heap/gc-idle-time-handler.h

Issue 732473002: Added --trace_idle_notification_verbose which prints out the idle notificatino heap state. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/gc-idle-time-handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 5 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_
6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // That is the maximum idle time we will have during frame rendering. 109 // That is the maximum idle time we will have during frame rendering.
110 static const size_t kMaxFrameRenderingIdleTime = 16; 110 static const size_t kMaxFrameRenderingIdleTime = 16;
111 111
112 // If we haven't recorded any scavenger events yet, we use a conservative 112 // If we haven't recorded any scavenger events yet, we use a conservative
113 // lower bound for the scavenger speed. 113 // lower bound for the scavenger speed.
114 static const size_t kInitialConservativeScavengeSpeed = 100 * KB; 114 static const size_t kInitialConservativeScavengeSpeed = 100 * KB;
115 115
116 // If contexts are disposed at a higher rate a full gc is triggered. 116 // If contexts are disposed at a higher rate a full gc is triggered.
117 static const double kHighContextDisposalRate; 117 static const double kHighContextDisposalRate;
118 118
119 struct HeapState { 119 class HeapState {
120 public:
121 void Print();
122
120 int contexts_disposed; 123 int contexts_disposed;
121 double contexts_disposal_rate; 124 double contexts_disposal_rate;
122 size_t size_of_objects; 125 size_t size_of_objects;
123 bool incremental_marking_stopped; 126 bool incremental_marking_stopped;
124 bool can_start_incremental_marking; 127 bool can_start_incremental_marking;
125 bool sweeping_in_progress; 128 bool sweeping_in_progress;
126 size_t mark_compact_speed_in_bytes_per_ms; 129 size_t mark_compact_speed_in_bytes_per_ms;
127 size_t incremental_marking_speed_in_bytes_per_ms; 130 size_t incremental_marking_speed_in_bytes_per_ms;
128 size_t scavenge_speed_in_bytes_per_ms; 131 size_t scavenge_speed_in_bytes_per_ms;
129 size_t used_new_space_size; 132 size_t used_new_space_size;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 int mark_compacts_since_idle_round_started_; 180 int mark_compacts_since_idle_round_started_;
178 int scavenges_since_last_idle_round_; 181 int scavenges_since_last_idle_round_;
179 182
180 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); 183 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler);
181 }; 184 };
182 185
183 } // namespace internal 186 } // namespace internal
184 } // namespace v8 187 } // namespace v8
185 188
186 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 189 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/gc-idle-time-handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698