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

Side by Side Diff: src/gc-tracer.h

Issue 423303006: Make sure that there is enough time left before finishing incremental marking in idle notification. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gc-tracer.cc » ('j') | src/heap.cc » ('J')
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_GC_TRACER_H_ 5 #ifndef V8_GC_TRACER_H_
6 #define V8_GC_TRACER_H_ 6 #define V8_GC_TRACER_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 double MeanIncrementalMarkingDuration() const; 247 double MeanIncrementalMarkingDuration() const;
248 248
249 // Compute the max step duration of the last incremental marking round. 249 // Compute the max step duration of the last incremental marking round.
250 // Returns 0 if no incremental marking round has been completed. 250 // Returns 0 if no incremental marking round has been completed.
251 double MaxIncrementalMarkingDuration() const; 251 double MaxIncrementalMarkingDuration() const;
252 252
253 // Compute the average incremental marking speed in bytes/second. Returns 0 if 253 // Compute the average incremental marking speed in bytes/second. Returns 0 if
254 // no events have been recorded. 254 // no events have been recorded.
255 intptr_t MarkingSpeedInBytesPerMillisecond() const; 255 intptr_t MarkingSpeedInBytesPerMillisecond() const;
256 256
257 // Returns the duration of the last incremental marking step.
258 double last_incremental_marking_step_duration() const {
259 return last_incremental_marking_step_duration_;
260 }
261
257 private: 262 private:
258 // Print one detailed trace line in name=value format. 263 // Print one detailed trace line in name=value format.
259 // TODO(ernstm): Move to Heap. 264 // TODO(ernstm): Move to Heap.
260 void PrintNVP() const; 265 void PrintNVP() const;
261 266
262 // Print one trace line. 267 // Print one trace line.
263 // TODO(ernstm): Move to Heap. 268 // TODO(ernstm): Move to Heap.
264 void Print() const; 269 void Print() const;
265 270
266 // Compute the mean duration of the events in the given ring buffer. 271 // Compute the mean duration of the events in the given ring buffer.
(...skipping 24 matching lines...) Expand all
291 // Cumulative number of incremental marking steps since creation of tracer. 296 // Cumulative number of incremental marking steps since creation of tracer.
292 int cumulative_incremental_marking_steps_; 297 int cumulative_incremental_marking_steps_;
293 298
294 // Cumulative size of incremental marking steps (in bytes) since creation of 299 // Cumulative size of incremental marking steps (in bytes) since creation of
295 // tracer. 300 // tracer.
296 intptr_t cumulative_incremental_marking_bytes_; 301 intptr_t cumulative_incremental_marking_bytes_;
297 302
298 // Cumulative duration of incremental marking steps since creation of tracer. 303 // Cumulative duration of incremental marking steps since creation of tracer.
299 double cumulative_incremental_marking_duration_; 304 double cumulative_incremental_marking_duration_;
300 305
306 // Duration of last incremental marking step.
307 double last_incremental_marking_step_duration_;
308
301 // Longest incremental marking step since start of marking. 309 // Longest incremental marking step since start of marking.
302 double longest_incremental_marking_step_; 310 double longest_incremental_marking_step_;
303 311
304 DISALLOW_COPY_AND_ASSIGN(GCTracer); 312 DISALLOW_COPY_AND_ASSIGN(GCTracer);
305 }; 313 };
306 } 314 }
307 } // namespace v8::internal 315 } // namespace v8::internal
308 316
309 #endif // V8_GC_TRACER_H_ 317 #endif // V8_GC_TRACER_H_
OLDNEW
« no previous file with comments | « no previous file | src/gc-tracer.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698