| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 // Compute the max mark-sweep speed in bytes/millisecond. | 335 // Compute the max mark-sweep speed in bytes/millisecond. |
| 336 // Returns 0 if no events have been recorded. | 336 // Returns 0 if no events have been recorded. |
| 337 intptr_t MarkCompactSpeedInBytesPerMillisecond() const; | 337 intptr_t MarkCompactSpeedInBytesPerMillisecond() const; |
| 338 | 338 |
| 339 // Allocation throughput in the new space in bytes/millisecond. | 339 // Allocation throughput in the new space in bytes/millisecond. |
| 340 // Returns 0 if no events have been recorded. | 340 // Returns 0 if no events have been recorded. |
| 341 intptr_t NewSpaceAllocationThroughputInBytesPerMillisecond() const; | 341 intptr_t NewSpaceAllocationThroughputInBytesPerMillisecond() const; |
| 342 | 342 |
| 343 // Computes the context disposal rate in milliseconds. It takes the time | 343 // Computes the context disposal rate in milliseconds. It takes the time |
| 344 // frame of the first and last context disposal event and devides it by the | 344 // frame of the first recorded context disposal to the current time and |
| 345 // number of recorded events. | 345 // divides it by the number of recorded events. |
| 346 // Returns 0 if no events have been recorded. | 346 // Returns 0 if no events have been recorded. |
| 347 double ContextDisposalRateInMilliseconds() const; | 347 double ContextDisposalRateInMilliseconds() const; |
| 348 | 348 |
| 349 private: | 349 private: |
| 350 // Print one detailed trace line in name=value format. | 350 // Print one detailed trace line in name=value format. |
| 351 // TODO(ernstm): Move to Heap. | 351 // TODO(ernstm): Move to Heap. |
| 352 void PrintNVP() const; | 352 void PrintNVP() const; |
| 353 | 353 |
| 354 // Print one trace line. | 354 // Print one trace line. |
| 355 // TODO(ernstm): Move to Heap. | 355 // TODO(ernstm): Move to Heap. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 // Holds the new space top pointer recorded at the end of the last garbage | 418 // Holds the new space top pointer recorded at the end of the last garbage |
| 419 // collection. | 419 // collection. |
| 420 intptr_t new_space_top_after_gc_; | 420 intptr_t new_space_top_after_gc_; |
| 421 | 421 |
| 422 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 422 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 423 }; | 423 }; |
| 424 } | 424 } |
| 425 } // namespace v8::internal | 425 } // namespace v8::internal |
| 426 | 426 |
| 427 #endif // V8_HEAP_GC_TRACER_H_ | 427 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |