OLD | NEW |
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_TRACER_H_ | 5 #ifndef V8_HEAP_GC_TRACER_H_ |
6 #define V8_HEAP_GC_TRACER_H_ | 6 #define V8_HEAP_GC_TRACER_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 double MaxIncrementalMarkingDuration() const; | 284 double MaxIncrementalMarkingDuration() const; |
285 | 285 |
286 // Compute the average incremental marking speed in bytes/millisecond. | 286 // Compute the average incremental marking speed in bytes/millisecond. |
287 // Returns 0 if no events have been recorded. | 287 // Returns 0 if no events have been recorded. |
288 intptr_t IncrementalMarkingSpeedInBytesPerMillisecond() const; | 288 intptr_t IncrementalMarkingSpeedInBytesPerMillisecond() const; |
289 | 289 |
290 // Compute the average scavenge speed in bytes/millisecond. | 290 // Compute the average scavenge speed in bytes/millisecond. |
291 // Returns 0 if no events have been recorded. | 291 // Returns 0 if no events have been recorded. |
292 intptr_t ScavengeSpeedInBytesPerMillisecond() const; | 292 intptr_t ScavengeSpeedInBytesPerMillisecond() const; |
293 | 293 |
| 294 // Compute the max mark-sweep speed in bytes/millisecond. |
| 295 // Returns 0 if no events have been recorded. |
| 296 intptr_t MaxMarkSweepSpeedInBytesPerMillisecond() const; |
| 297 |
294 private: | 298 private: |
295 // Print one detailed trace line in name=value format. | 299 // Print one detailed trace line in name=value format. |
296 // TODO(ernstm): Move to Heap. | 300 // TODO(ernstm): Move to Heap. |
297 void PrintNVP() const; | 301 void PrintNVP() const; |
298 | 302 |
299 // Print one trace line. | 303 // Print one trace line. |
300 // TODO(ernstm): Move to Heap. | 304 // TODO(ernstm): Move to Heap. |
301 void Print() const; | 305 void Print() const; |
302 | 306 |
303 // Compute the mean duration of the events in the given ring buffer. | 307 // Compute the mean duration of the events in the given ring buffer. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // of the initial atomic sweeping pause. Make sure that it accumulates | 358 // of the initial atomic sweeping pause. Make sure that it accumulates |
355 // all sweeping operations performed on the main thread. | 359 // all sweeping operations performed on the main thread. |
356 double cumulative_sweeping_duration_; | 360 double cumulative_sweeping_duration_; |
357 | 361 |
358 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 362 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
359 }; | 363 }; |
360 } | 364 } |
361 } // namespace v8::internal | 365 } // namespace v8::internal |
362 | 366 |
363 #endif // V8_HEAP_GC_TRACER_H_ | 367 #endif // V8_HEAP_GC_TRACER_H_ |
OLD | NEW |