| 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 private: | 414 private: |
| 415 // Print one detailed trace line in name=value format. | 415 // Print one detailed trace line in name=value format. |
| 416 // TODO(ernstm): Move to Heap. | 416 // TODO(ernstm): Move to Heap. |
| 417 void PrintNVP() const; | 417 void PrintNVP() const; |
| 418 | 418 |
| 419 // Print one trace line. | 419 // Print one trace line. |
| 420 // TODO(ernstm): Move to Heap. | 420 // TODO(ernstm): Move to Heap. |
| 421 void Print() const; | 421 void Print() const; |
| 422 | 422 |
| 423 // Prints a line and also adds it to the heap's ring buffer so that |
| 424 // it can be included in later crash dumps. |
| 425 void Output(const char* format, ...) const; |
| 426 |
| 423 // Compute the mean duration of the events in the given ring buffer. | 427 // Compute the mean duration of the events in the given ring buffer. |
| 424 double MeanDuration(const EventBuffer& events) const; | 428 double MeanDuration(const EventBuffer& events) const; |
| 425 | 429 |
| 426 // Compute the max duration of the events in the given ring buffer. | 430 // Compute the max duration of the events in the given ring buffer. |
| 427 double MaxDuration(const EventBuffer& events) const; | 431 double MaxDuration(const EventBuffer& events) const; |
| 428 | 432 |
| 429 void ClearMarkCompactStatistics() { | 433 void ClearMarkCompactStatistics() { |
| 430 cumulative_incremental_marking_steps_ = 0; | 434 cumulative_incremental_marking_steps_ = 0; |
| 431 cumulative_incremental_marking_bytes_ = 0; | 435 cumulative_incremental_marking_bytes_ = 0; |
| 432 cumulative_incremental_marking_duration_ = 0; | 436 cumulative_incremental_marking_duration_ = 0; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 | 511 |
| 508 // Counts how many tracers were started without stopping. | 512 // Counts how many tracers were started without stopping. |
| 509 int start_counter_; | 513 int start_counter_; |
| 510 | 514 |
| 511 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 515 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 512 }; | 516 }; |
| 513 } | 517 } |
| 514 } // namespace v8::internal | 518 } // namespace v8::internal |
| 515 | 519 |
| 516 #endif // V8_HEAP_GC_TRACER_H_ | 520 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |