Revision f230a1cf deps/v8/src/v8-counters.h

View differences:

deps/v8/src/v8-counters.h
51 51
  HT(compile_lazy, V8.CompileLazy)
52 52

  
53 53
#define HISTOGRAM_PERCENTAGE_LIST(HP)                                 \
54
  /* Heap fragmentation. */                                           \
54 55
  HP(external_fragmentation_total,                                    \
55 56
     V8.MemoryExternalFragmentationTotal)                             \
56 57
  HP(external_fragmentation_old_pointer_space,                        \
......
67 68
     V8.MemoryExternalFragmentationPropertyCellSpace)                 \
68 69
  HP(external_fragmentation_lo_space,                                 \
69 70
     V8.MemoryExternalFragmentationLoSpace)                           \
71
  /* Percentages of heap committed to each space. */                  \
72
  HP(heap_fraction_new_space,                                         \
73
     V8.MemoryHeapFractionNewSpace)                                   \
74
  HP(heap_fraction_old_pointer_space,                                 \
75
     V8.MemoryHeapFractionOldPointerSpace)                            \
76
  HP(heap_fraction_old_data_space,                                    \
77
     V8.MemoryHeapFractionOldDataSpace)                               \
78
  HP(heap_fraction_code_space,                                        \
79
     V8.MemoryHeapFractionCodeSpace)                                  \
70 80
  HP(heap_fraction_map_space,                                         \
71 81
     V8.MemoryHeapFractionMapSpace)                                   \
72 82
  HP(heap_fraction_cell_space,                                        \
73 83
     V8.MemoryHeapFractionCellSpace)                                  \
74 84
  HP(heap_fraction_property_cell_space,                               \
75 85
     V8.MemoryHeapFractionPropertyCellSpace)                          \
86
  HP(heap_fraction_lo_space,                                          \
87
     V8.MemoryHeapFractionLoSpace)                                    \
88
  /* Percentage of crankshafted codegen. */                           \
89
  HP(codegen_fraction_crankshaft,                                     \
90
     V8.CodegenFractionCrankshaft)                                    \
76 91

  
77 92

  
78 93
#define HISTOGRAM_MEMORY_LIST(HM)                                     \
......
84 99
     V8.MemoryHeapSampleCellSpaceCommitted)                           \
85 100
  HM(heap_sample_property_cell_space_committed,                       \
86 101
     V8.MemoryHeapSamplePropertyCellSpaceCommitted)                   \
102
  HM(heap_sample_code_space_committed,                                \
103
     V8.MemoryHeapSampleCodeSpaceCommitted)                           \
87 104

  
88 105

  
89 106
// WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC
......
204 221
  SC(enum_cache_hits, V8.EnumCacheHits)                               \
205 222
  SC(enum_cache_misses, V8.EnumCacheMisses)                           \
206 223
  SC(zone_segment_bytes, V8.ZoneSegmentBytes)                         \
207
  SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls)            \
208 224
  SC(fast_new_closure_total, V8.FastNewClosureTotal)                  \
209 225
  SC(fast_new_closure_try_optimized, V8.FastNewClosureTryOptimized)   \
210 226
  SC(fast_new_closure_install_optimized, V8.FastNewClosureInstallOptimized) \
......
320 336
  FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC)
321 337
#undef SC
322 338

  
339
#define SC(name) \
340
  StatsCounter* count_of_CODE_AGE_##name() \
341
    { return &count_of_CODE_AGE_##name##_; } \
342
  StatsCounter* size_of_CODE_AGE_##name() \
343
    { return &size_of_CODE_AGE_##name##_; }
344
  CODE_AGE_LIST_WITH_NO_AGE(SC)
345
#undef SC
346

  
323 347
  enum Id {
324 348
#define RATE_ID(name, caption) k_##name,
325 349
    HISTOGRAM_TIMER_LIST(RATE_ID)
......
345 369
    kSizeOfFIXED_ARRAY__##name,
346 370
    FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(COUNTER_ID)
347 371
#undef COUNTER_ID
372
#define COUNTER_ID(name) kCountOfCODE_AGE__##name, \
373
    kSizeOfCODE_AGE__##name,
374
    CODE_AGE_LIST_WITH_NO_AGE(COUNTER_ID)
375
#undef COUNTER_ID
348 376
    stats_counter_count
349 377
  };
350 378

  
......
390 418
  FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC)
391 419
#undef SC
392 420

  
421
#define SC(name) \
422
  StatsCounter size_of_CODE_AGE_##name##_; \
423
  StatsCounter count_of_CODE_AGE_##name##_;
424
  CODE_AGE_LIST_WITH_NO_AGE(SC)
425
#undef SC
426

  
393 427
  friend class Isolate;
394 428

  
395 429
  explicit Counters(Isolate* isolate);

Also available in: Unified diff