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_GC_TRACER_H_ | 5 #ifndef V8_GC_TRACER_H_ |
6 #define V8_GC_TRACER_H_ | 6 #define V8_GC_TRACER_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // Compute the mean step duration of the last incremental marking round. | 245 // Compute the mean step duration of the last incremental marking round. |
246 // Returns 0 if no incremental marking round has been completed. | 246 // Returns 0 if no incremental marking round has been completed. |
247 double MeanIncrementalMarkingDuration() const; | 247 double MeanIncrementalMarkingDuration() const; |
248 | 248 |
249 // Compute the max step duration of the last incremental marking round. | 249 // Compute the max step duration of the last incremental marking round. |
250 // Returns 0 if no incremental marking round has been completed. | 250 // Returns 0 if no incremental marking round has been completed. |
251 double MaxIncrementalMarkingDuration() const; | 251 double MaxIncrementalMarkingDuration() const; |
252 | 252 |
253 // Compute the average incremental marking speed in bytes/second. Returns 0 if | 253 // Compute the average incremental marking speed in bytes/second. Returns 0 if |
254 // no events have been recorded. | 254 // no events have been recorded. |
255 intptr_t MarkingSpeedInBytesPerMillisecond() const; | 255 intptr_t IncrementalMarkingSpeedInBytesPerMillisecond() const; |
256 | 256 |
257 private: | 257 private: |
258 // Print one detailed trace line in name=value format. | 258 // Print one detailed trace line in name=value format. |
259 // TODO(ernstm): Move to Heap. | 259 // TODO(ernstm): Move to Heap. |
260 void PrintNVP() const; | 260 void PrintNVP() const; |
261 | 261 |
262 // Print one trace line. | 262 // Print one trace line. |
263 // TODO(ernstm): Move to Heap. | 263 // TODO(ernstm): Move to Heap. |
264 void Print() const; | 264 void Print() const; |
265 | 265 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 300 |
301 // Longest incremental marking step since start of marking. | 301 // Longest incremental marking step since start of marking. |
302 double longest_incremental_marking_step_; | 302 double longest_incremental_marking_step_; |
303 | 303 |
304 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 304 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
305 }; | 305 }; |
306 } | 306 } |
307 } // namespace v8::internal | 307 } // namespace v8::internal |
308 | 308 |
309 #endif // V8_GC_TRACER_H_ | 309 #endif // V8_GC_TRACER_H_ |
OLD | NEW |