diff options
Diffstat (limited to 'chromium/v8/src/v8-counters.h')
-rw-r--r-- | chromium/v8/src/v8-counters.h | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/chromium/v8/src/v8-counters.h b/chromium/v8/src/v8-counters.h index ff2247cba16..9178046d6ed 100644 --- a/chromium/v8/src/v8-counters.h +++ b/chromium/v8/src/v8-counters.h @@ -51,6 +51,7 @@ namespace internal { HT(compile_lazy, V8.CompileLazy) #define HISTOGRAM_PERCENTAGE_LIST(HP) \ + /* Heap fragmentation. */ \ HP(external_fragmentation_total, \ V8.MemoryExternalFragmentationTotal) \ HP(external_fragmentation_old_pointer_space, \ @@ -67,12 +68,26 @@ namespace internal { V8.MemoryExternalFragmentationPropertyCellSpace) \ HP(external_fragmentation_lo_space, \ V8.MemoryExternalFragmentationLoSpace) \ + /* Percentages of heap committed to each space. */ \ + HP(heap_fraction_new_space, \ + V8.MemoryHeapFractionNewSpace) \ + HP(heap_fraction_old_pointer_space, \ + V8.MemoryHeapFractionOldPointerSpace) \ + HP(heap_fraction_old_data_space, \ + V8.MemoryHeapFractionOldDataSpace) \ + HP(heap_fraction_code_space, \ + V8.MemoryHeapFractionCodeSpace) \ HP(heap_fraction_map_space, \ V8.MemoryHeapFractionMapSpace) \ HP(heap_fraction_cell_space, \ V8.MemoryHeapFractionCellSpace) \ HP(heap_fraction_property_cell_space, \ V8.MemoryHeapFractionPropertyCellSpace) \ + HP(heap_fraction_lo_space, \ + V8.MemoryHeapFractionLoSpace) \ + /* Percentage of crankshafted codegen. */ \ + HP(codegen_fraction_crankshaft, \ + V8.CodegenFractionCrankshaft) \ #define HISTOGRAM_MEMORY_LIST(HM) \ @@ -84,6 +99,10 @@ namespace internal { V8.MemoryHeapSampleCellSpaceCommitted) \ HM(heap_sample_property_cell_space_committed, \ V8.MemoryHeapSamplePropertyCellSpaceCommitted) \ + HM(heap_sample_code_space_committed, \ + V8.MemoryHeapSampleCodeSpaceCommitted) \ + HM(heap_sample_maximum_committed, \ + V8.MemoryHeapSampleMaximumCommitted) \ // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC @@ -204,7 +223,6 @@ namespace internal { SC(enum_cache_hits, V8.EnumCacheHits) \ SC(enum_cache_misses, V8.EnumCacheMisses) \ SC(zone_segment_bytes, V8.ZoneSegmentBytes) \ - SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls) \ SC(fast_new_closure_total, V8.FastNewClosureTotal) \ SC(fast_new_closure_try_optimized, V8.FastNewClosureTryOptimized) \ SC(fast_new_closure_install_optimized, V8.FastNewClosureInstallOptimized) \ @@ -224,7 +242,6 @@ namespace internal { SC(math_asin, V8.MathAsin) \ SC(math_atan, V8.MathAtan) \ SC(math_atan2, V8.MathAtan2) \ - SC(math_ceil, V8.MathCeil) \ SC(math_cos, V8.MathCos) \ SC(math_exp, V8.MathExp) \ SC(math_floor, V8.MathFloor) \ @@ -243,6 +260,9 @@ namespace internal { SC(soft_deopts_requested, V8.SoftDeoptsRequested) \ SC(soft_deopts_inserted, V8.SoftDeoptsInserted) \ SC(soft_deopts_executed, V8.SoftDeoptsExecuted) \ + /* Number of write barriers in generated code. */ \ + SC(write_barriers_dynamic, V8.WriteBarriersDynamic) \ + SC(write_barriers_static, V8.WriteBarriersStatic) \ SC(new_space_bytes_available, V8.MemoryNewSpaceBytesAvailable) \ SC(new_space_bytes_committed, V8.MemoryNewSpaceBytesCommitted) \ SC(new_space_bytes_used, V8.MemoryNewSpaceBytesUsed) \ @@ -320,6 +340,14 @@ class Counters { FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) #undef SC +#define SC(name) \ + StatsCounter* count_of_CODE_AGE_##name() \ + { return &count_of_CODE_AGE_##name##_; } \ + StatsCounter* size_of_CODE_AGE_##name() \ + { return &size_of_CODE_AGE_##name##_; } + CODE_AGE_LIST_COMPLETE(SC) +#undef SC + enum Id { #define RATE_ID(name, caption) k_##name, HISTOGRAM_TIMER_LIST(RATE_ID) @@ -345,6 +373,10 @@ class Counters { kSizeOfFIXED_ARRAY__##name, FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(COUNTER_ID) #undef COUNTER_ID +#define COUNTER_ID(name) kCountOfCODE_AGE__##name, \ + kSizeOfCODE_AGE__##name, + CODE_AGE_LIST_COMPLETE(COUNTER_ID) +#undef COUNTER_ID stats_counter_count }; @@ -390,6 +422,12 @@ class Counters { FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) #undef SC +#define SC(name) \ + StatsCounter size_of_CODE_AGE_##name##_; \ + StatsCounter count_of_CODE_AGE_##name##_; + CODE_AGE_LIST_COMPLETE(SC) +#undef SC + friend class Isolate; explicit Counters(Isolate* isolate); |