| 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 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
| 9 #include "src/counters.h" | 9 #include "src/counters.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 // bytes/millisecond. | 397 // bytes/millisecond. |
| 398 // Returns 0 if no events have been recorded. | 398 // Returns 0 if no events have been recorded. |
| 399 intptr_t FinalIncrementalMarkCompactSpeedInBytesPerMillisecond() const; | 399 intptr_t FinalIncrementalMarkCompactSpeedInBytesPerMillisecond() const; |
| 400 | 400 |
| 401 // Compute the overall mark compact speed including incremental steps | 401 // Compute the overall mark compact speed including incremental steps |
| 402 // and the final mark-compact step. | 402 // and the final mark-compact step. |
| 403 double CombinedMarkCompactSpeedInBytesPerMillisecond(); | 403 double CombinedMarkCompactSpeedInBytesPerMillisecond(); |
| 404 | 404 |
| 405 // Allocation throughput in the new space in bytes/millisecond. | 405 // Allocation throughput in the new space in bytes/millisecond. |
| 406 // Returns 0 if no allocation events have been recorded. | 406 // Returns 0 if no allocation events have been recorded. |
| 407 size_t NewSpaceAllocationThroughputInBytesPerMillisecond( | 407 double NewSpaceAllocationThroughputInBytesPerMillisecond( |
| 408 double time_ms = 0) const; | 408 double time_ms = 0) const; |
| 409 | 409 |
| 410 // Allocation throughput in the old generation in bytes/millisecond in the | 410 // Allocation throughput in the old generation in bytes/millisecond in the |
| 411 // last time_ms milliseconds. | 411 // last time_ms milliseconds. |
| 412 // Returns 0 if no allocation events have been recorded. | 412 // Returns 0 if no allocation events have been recorded. |
| 413 size_t OldGenerationAllocationThroughputInBytesPerMillisecond( | 413 double OldGenerationAllocationThroughputInBytesPerMillisecond( |
| 414 double time_ms = 0) const; | 414 double time_ms = 0) const; |
| 415 | 415 |
| 416 // Allocation throughput in heap in bytes/millisecond in the last time_ms | 416 // Allocation throughput in heap in bytes/millisecond in the last time_ms |
| 417 // milliseconds. | 417 // milliseconds. |
| 418 // Returns 0 if no allocation events have been recorded. | 418 // Returns 0 if no allocation events have been recorded. |
| 419 size_t AllocationThroughputInBytesPerMillisecond(double time_ms) const; | 419 double AllocationThroughputInBytesPerMillisecond(double time_ms) const; |
| 420 | 420 |
| 421 // Allocation throughput in heap in bytes/milliseconds in the last | 421 // Allocation throughput in heap in bytes/milliseconds in the last |
| 422 // kThroughputTimeFrameMs seconds. | 422 // kThroughputTimeFrameMs seconds. |
| 423 // Returns 0 if no allocation events have been recorded. | 423 // Returns 0 if no allocation events have been recorded. |
| 424 size_t CurrentAllocationThroughputInBytesPerMillisecond() const; | 424 size_t CurrentAllocationThroughputInBytesPerMillisecond() const; |
| 425 | 425 |
| 426 // Allocation throughput in old generation in bytes/milliseconds in the last | 426 // Allocation throughput in old generation in bytes/milliseconds in the last |
| 427 // kThroughputTimeFrameMs seconds. | 427 // kThroughputTimeFrameMs seconds. |
| 428 // Returns 0 if no allocation events have been recorded. | 428 // Returns 0 if no allocation events have been recorded. |
| 429 size_t CurrentOldGenerationAllocationThroughputInBytesPerMillisecond() const; | 429 size_t CurrentOldGenerationAllocationThroughputInBytesPerMillisecond() const; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 580 |
| 581 // Separate timer used for --runtime_call_stats | 581 // Separate timer used for --runtime_call_stats |
| 582 RuntimeCallTimer timer_; | 582 RuntimeCallTimer timer_; |
| 583 | 583 |
| 584 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 584 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 585 }; | 585 }; |
| 586 } // namespace internal | 586 } // namespace internal |
| 587 } // namespace v8 | 587 } // namespace v8 |
| 588 | 588 |
| 589 #endif // V8_HEAP_GC_TRACER_H_ | 589 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |