 Chromium Code Reviews
 Chromium Code Reviews Issue 2459903003:
  [Tracing] Use TracingCategoryObserver in gc statistics  (Closed)
    
  
    Issue 2459903003:
  [Tracing] Use TracingCategoryObserver in gc statistics  (Closed) 
  | Index: src/flag-definitions.h | 
| diff --git a/src/flag-definitions.h b/src/flag-definitions.h | 
| index a5764287b6a352d69323fc1a4f1f02b2a722a70d..0f444278b2aa73c33149bf42c99f8c19aa93791f 100644 | 
| --- a/src/flag-definitions.h | 
| +++ b/src/flag-definitions.h | 
| @@ -747,7 +747,10 @@ DEFINE_BOOL(track_gc_object_stats, false, | 
| "track object counts and memory usage") | 
| DEFINE_BOOL(trace_gc_object_stats, false, | 
| "trace object counts and memory usage") | 
| +DEFINE_INT(gc_stats, 0, "Used by tracing internally to enable gc statistics") | 
| 
Michael Lippautz
2016/11/02 09:25:08
Why int and not bool?
 
lpy
2016/11/03 04:48:22
We still want the flag be recognizable whether it'
 | 
| DEFINE_IMPLICATION(trace_gc_object_stats, track_gc_object_stats) | 
| +DEFINE_VALUE_IMPLICATION(track_gc_object_stats, gc_stats, 1) | 
| +DEFINE_VALUE_IMPLICATION(trace_gc_object_stats, gc_stats, 1) | 
| DEFINE_NEG_IMPLICATION(trace_gc_object_stats, incremental_marking) | 
| DEFINE_BOOL(track_detached_contexts, true, | 
| "track native contexts that are expected to be garbage collected") |