| 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/globals.h" | 9 #include "src/globals.h" |
| 10 | 10 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // last time_ms milliseconds. | 412 // last time_ms milliseconds. |
| 413 // Returns 0 if no allocation events have been recorded. | 413 // Returns 0 if no allocation events have been recorded. |
| 414 size_t OldGenerationAllocationThroughputInBytesPerMillisecond( | 414 size_t OldGenerationAllocationThroughputInBytesPerMillisecond( |
| 415 double time_ms = 0) const; | 415 double time_ms = 0) const; |
| 416 | 416 |
| 417 // Allocation throughput in heap in bytes/millisecond in the last time_ms | 417 // Allocation throughput in heap in bytes/millisecond in the last time_ms |
| 418 // milliseconds. | 418 // milliseconds. |
| 419 // Returns 0 if no allocation events have been recorded. | 419 // Returns 0 if no allocation events have been recorded. |
| 420 size_t AllocationThroughputInBytesPerMillisecond(double time_ms) const; | 420 size_t AllocationThroughputInBytesPerMillisecond(double time_ms) const; |
| 421 | 421 |
| 422 // Allocation throughput in heap in bytes/milliseconds in | 422 // Allocation throughput in heap in bytes/milliseconds in the last |
| 423 // the last five seconds. | 423 // kThroughputTimeFrameMs seconds. |
| 424 // Returns 0 if no allocation events have been recorded. | 424 // Returns 0 if no allocation events have been recorded. |
| 425 size_t CurrentAllocationThroughputInBytesPerMillisecond() const; | 425 size_t CurrentAllocationThroughputInBytesPerMillisecond() const; |
| 426 | 426 |
| 427 // Allocation throughput in old generation in bytes/milliseconds in | 427 // Allocation throughput in old generation in bytes/milliseconds in the last |
| 428 // the last five seconds. | 428 // kThroughputTimeFrameMs seconds. |
| 429 // Returns 0 if no allocation events have been recorded. | 429 // Returns 0 if no allocation events have been recorded. |
| 430 size_t CurrentOldGenerationAllocationThroughputInBytesPerMillisecond() const; | 430 size_t CurrentOldGenerationAllocationThroughputInBytesPerMillisecond() const; |
| 431 | 431 |
| 432 // Computes the context disposal rate in milliseconds. It takes the time | 432 // Computes the context disposal rate in milliseconds. It takes the time |
| 433 // frame of the first recorded context disposal to the current time and | 433 // frame of the first recorded context disposal to the current time and |
| 434 // divides it by the number of recorded events. | 434 // divides it by the number of recorded events. |
| 435 // Returns 0 if no events have been recorded. | 435 // Returns 0 if no events have been recorded. |
| 436 double ContextDisposalRateInMilliseconds() const; | 436 double ContextDisposalRateInMilliseconds() const; |
| 437 | 437 |
| 438 // Computes the average survival ratio based on the last recorded survival | 438 // Computes the average survival ratio based on the last recorded survival |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 551 |
| 552 // Counts how many tracers were started without stopping. | 552 // Counts how many tracers were started without stopping. |
| 553 int start_counter_; | 553 int start_counter_; |
| 554 | 554 |
| 555 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 555 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 556 }; | 556 }; |
| 557 } | 557 } |
| 558 } // namespace v8::internal | 558 } // namespace v8::internal |
| 559 | 559 |
| 560 #endif // V8_HEAP_GC_TRACER_H_ | 560 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |