| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 intptr_t FinalIncrementalMarkCompactSpeedInBytesPerMillisecond() const; | 382 intptr_t FinalIncrementalMarkCompactSpeedInBytesPerMillisecond() const; |
| 383 | 383 |
| 384 // Allocation throughput in the new space in bytes/millisecond. | 384 // Allocation throughput in the new space in bytes/millisecond. |
| 385 // Returns 0 if no allocation events have been recorded. | 385 // Returns 0 if no allocation events have been recorded. |
| 386 size_t NewSpaceAllocationThroughputInBytesPerMillisecond() const; | 386 size_t NewSpaceAllocationThroughputInBytesPerMillisecond() const; |
| 387 | 387 |
| 388 // Bytes allocated in new space in the specified time. | 388 // Bytes allocated in new space in the specified time. |
| 389 // Returns 0 if no allocation events have been recorded. | 389 // Returns 0 if no allocation events have been recorded. |
| 390 size_t NewSpaceAllocatedBytesInLast(double time_ms) const; | 390 size_t NewSpaceAllocatedBytesInLast(double time_ms) const; |
| 391 | 391 |
| 392 // Allocation throughput in the new space in bytes/milliseconds in |
| 393 // the last five seconds. |
| 394 // Returns 0 if no allocation events have been recorded. |
| 395 size_t CurrentNewSpaceAllocationThroughputInBytesPerMillisecond() const; |
| 396 |
| 392 // Computes the context disposal rate in milliseconds. It takes the time | 397 // Computes the context disposal rate in milliseconds. It takes the time |
| 393 // frame of the first recorded context disposal to the current time and | 398 // frame of the first recorded context disposal to the current time and |
| 394 // divides it by the number of recorded events. | 399 // divides it by the number of recorded events. |
| 395 // Returns 0 if no events have been recorded. | 400 // Returns 0 if no events have been recorded. |
| 396 double ContextDisposalRateInMilliseconds() const; | 401 double ContextDisposalRateInMilliseconds() const; |
| 397 | 402 |
| 398 // Computes the average survival ratio based on the last recorded survival | 403 // Computes the average survival ratio based on the last recorded survival |
| 399 // events. | 404 // events. |
| 400 // Returns 0 if no events have been recorded. | 405 // Returns 0 if no events have been recorded. |
| 401 double AverageSurvivalRatio() const; | 406 double AverageSurvivalRatio() const; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 507 |
| 503 // Counts how many tracers were started without stopping. | 508 // Counts how many tracers were started without stopping. |
| 504 int start_counter_; | 509 int start_counter_; |
| 505 | 510 |
| 506 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 511 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 507 }; | 512 }; |
| 508 } | 513 } |
| 509 } // namespace v8::internal | 514 } // namespace v8::internal |
| 510 | 515 |
| 511 #endif // V8_HEAP_GC_TRACER_H_ | 516 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |