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

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

Issue 2493803002: [heap] Add basic infrastructure for Minor Mark-Compact collector (Closed)
Patch Set: Addressed comment Created 4 years, 1 month 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/globals.h ('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" 8 #include "src/base/compiler-specific.h"
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/base/ring-buffer.h" 10 #include "src/base/ring-buffer.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 DISALLOW_COPY_AND_ASSIGN(Scope); 145 DISALLOW_COPY_AND_ASSIGN(Scope);
146 }; 146 };
147 147
148 148
149 class Event { 149 class Event {
150 public: 150 public:
151 enum Type { 151 enum Type {
152 SCAVENGER = 0, 152 SCAVENGER = 0,
153 MARK_COMPACTOR = 1, 153 MARK_COMPACTOR = 1,
154 INCREMENTAL_MARK_COMPACTOR = 2, 154 INCREMENTAL_MARK_COMPACTOR = 2,
155 START = 3 155 MINOR_MARK_COMPACTOR = 3,
156 START = 4
156 }; 157 };
157 158
158 Event(Type type, GarbageCollectionReason gc_reason, 159 Event(Type type, GarbageCollectionReason gc_reason,
159 const char* collector_reason); 160 const char* collector_reason);
160 161
161 // Returns a string describing the event type. 162 // Returns a string describing the event type.
162 const char* TypeName(bool short_name) const; 163 const char* TypeName(bool short_name) const;
163 164
164 // Type of event 165 // Type of event
165 Type type; 166 Type type;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 size_t old_generation_allocation_in_bytes_since_gc_; 407 size_t old_generation_allocation_in_bytes_since_gc_;
407 408
408 double combined_mark_compact_speed_cache_; 409 double combined_mark_compact_speed_cache_;
409 410
410 // Counts how many tracers were started without stopping. 411 // Counts how many tracers were started without stopping.
411 int start_counter_; 412 int start_counter_;
412 413
413 // Separate timer used for --runtime_call_stats 414 // Separate timer used for --runtime_call_stats
414 RuntimeCallTimer timer_; 415 RuntimeCallTimer timer_;
415 416
416 base::RingBuffer<BytesAndDuration> recorded_scavenges_total_; 417 base::RingBuffer<BytesAndDuration> recorded_minor_gcs_total_;
417 base::RingBuffer<BytesAndDuration> recorded_scavenges_survived_; 418 base::RingBuffer<BytesAndDuration> recorded_minor_gcs_survived_;
418 base::RingBuffer<BytesAndDuration> recorded_compactions_; 419 base::RingBuffer<BytesAndDuration> recorded_compactions_;
419 base::RingBuffer<BytesAndDuration> recorded_incremental_mark_compacts_; 420 base::RingBuffer<BytesAndDuration> recorded_incremental_mark_compacts_;
420 base::RingBuffer<BytesAndDuration> recorded_mark_compacts_; 421 base::RingBuffer<BytesAndDuration> recorded_mark_compacts_;
421 base::RingBuffer<BytesAndDuration> recorded_new_generation_allocations_; 422 base::RingBuffer<BytesAndDuration> recorded_new_generation_allocations_;
422 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; 423 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_;
423 base::RingBuffer<double> recorded_context_disposal_times_; 424 base::RingBuffer<double> recorded_context_disposal_times_;
424 base::RingBuffer<double> recorded_survival_ratios_; 425 base::RingBuffer<double> recorded_survival_ratios_;
425 426
426 DISALLOW_COPY_AND_ASSIGN(GCTracer); 427 DISALLOW_COPY_AND_ASSIGN(GCTracer);
427 }; 428 };
428 } // namespace internal 429 } // namespace internal
429 } // namespace v8 430 } // namespace v8
430 431
431 #endif // V8_HEAP_GC_TRACER_H_ 432 #endif // V8_HEAP_GC_TRACER_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698