Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: src/heap/gc-tracer.h

Issue 1877823003: Revert of Fix printf formats (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler-specific.h"
9 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
10 #include "src/counters.h" 9 #include "src/counters.h"
11 #include "src/globals.h" 10 #include "src/globals.h"
12 11
13 namespace v8 { 12 namespace v8 {
14 namespace internal { 13 namespace internal {
15 14
16 template <typename T> 15 template <typename T>
17 class RingBuffer { 16 class RingBuffer {
18 public: 17 public:
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 // Print one detailed trace line in name=value format. 376 // Print one detailed trace line in name=value format.
378 // TODO(ernstm): Move to Heap. 377 // TODO(ernstm): Move to Heap.
379 void PrintNVP() const; 378 void PrintNVP() const;
380 379
381 // Print one trace line. 380 // Print one trace line.
382 // TODO(ernstm): Move to Heap. 381 // TODO(ernstm): Move to Heap.
383 void Print() const; 382 void Print() const;
384 383
385 // Prints a line and also adds it to the heap's ring buffer so that 384 // Prints a line and also adds it to the heap's ring buffer so that
386 // it can be included in later crash dumps. 385 // it can be included in later crash dumps.
387 void PRINTF_FORMAT(2, 3) Output(const char* format, ...) const; 386 void Output(const char* format, ...) const;
388 387
389 void ClearMarkCompactStatistics() { 388 void ClearMarkCompactStatistics() {
390 cumulative_incremental_marking_steps_ = 0; 389 cumulative_incremental_marking_steps_ = 0;
391 cumulative_incremental_marking_bytes_ = 0; 390 cumulative_incremental_marking_bytes_ = 0;
392 cumulative_incremental_marking_duration_ = 0; 391 cumulative_incremental_marking_duration_ = 0;
393 cumulative_pure_incremental_marking_duration_ = 0; 392 cumulative_pure_incremental_marking_duration_ = 0;
394 longest_incremental_marking_step_ = 0; 393 longest_incremental_marking_step_ = 0;
395 cumulative_incremental_marking_finalization_steps_ = 0; 394 cumulative_incremental_marking_finalization_steps_ = 0;
396 cumulative_incremental_marking_finalization_duration_ = 0; 395 cumulative_incremental_marking_finalization_duration_ = 0;
397 longest_incremental_marking_finalization_step_ = 0; 396 longest_incremental_marking_finalization_step_ = 0;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; 490 RingBuffer<BytesAndDuration> recorded_old_generation_allocations_;
492 RingBuffer<double> recorded_context_disposal_times_; 491 RingBuffer<double> recorded_context_disposal_times_;
493 RingBuffer<double> recorded_survival_ratios_; 492 RingBuffer<double> recorded_survival_ratios_;
494 493
495 DISALLOW_COPY_AND_ASSIGN(GCTracer); 494 DISALLOW_COPY_AND_ASSIGN(GCTracer);
496 }; 495 };
497 } // namespace internal 496 } // namespace internal
498 } // namespace v8 497 } // namespace v8
499 498
500 #endif // V8_HEAP_GC_TRACER_H_ 499 #endif // V8_HEAP_GC_TRACER_H_
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698