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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // last time_ms milliseconds. | 395 // last time_ms milliseconds. |
396 // Returns 0 if no allocation events have been recorded. | 396 // Returns 0 if no allocation events have been recorded. |
397 size_t OldGenerationAllocationThroughputInBytesPerMillisecond( | 397 size_t OldGenerationAllocationThroughputInBytesPerMillisecond( |
398 double time_ms = 0) const; | 398 double time_ms = 0) const; |
399 | 399 |
400 // Allocation throughput in heap in bytes/millisecond in the last time_ms | 400 // Allocation throughput in heap in bytes/millisecond in the last time_ms |
401 // milliseconds. | 401 // milliseconds. |
402 // Returns 0 if no allocation events have been recorded. | 402 // Returns 0 if no allocation events have been recorded. |
403 size_t AllocationThroughputInBytesPerMillisecond(double time_ms) const; | 403 size_t AllocationThroughputInBytesPerMillisecond(double time_ms) const; |
404 | 404 |
405 // Allocation throughput in heap in bytes/milliseconds in | 405 // Allocation throughput in old generation in bytes/milliseconds in |
406 // the last five seconds. | 406 // the last five seconds. |
407 // Returns 0 if no allocation events have been recorded. | 407 // Returns 0 if no allocation events have been recorded. |
408 size_t CurrentAllocationThroughputInBytesPerMillisecond() const; | 408 size_t CurrentOldGenerationAllocationThroughputInBytesPerMillisecond() const; |
409 | 409 |
410 // Computes the context disposal rate in milliseconds. It takes the time | 410 // Computes the context disposal rate in milliseconds. It takes the time |
411 // frame of the first recorded context disposal to the current time and | 411 // frame of the first recorded context disposal to the current time and |
412 // divides it by the number of recorded events. | 412 // divides it by the number of recorded events. |
413 // Returns 0 if no events have been recorded. | 413 // Returns 0 if no events have been recorded. |
414 double ContextDisposalRateInMilliseconds() const; | 414 double ContextDisposalRateInMilliseconds() const; |
415 | 415 |
416 // Computes the average survival ratio based on the last recorded survival | 416 // Computes the average survival ratio based on the last recorded survival |
417 // events. | 417 // events. |
418 // Returns 0 if no events have been recorded. | 418 // Returns 0 if no events have been recorded. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 529 |
530 // Counts how many tracers were started without stopping. | 530 // Counts how many tracers were started without stopping. |
531 int start_counter_; | 531 int start_counter_; |
532 | 532 |
533 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 533 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
534 }; | 534 }; |
535 } | 535 } |
536 } // namespace v8::internal | 536 } // namespace v8::internal |
537 | 537 |
538 #endif // V8_HEAP_GC_TRACER_H_ | 538 #endif // V8_HEAP_GC_TRACER_H_ |
OLD | NEW |