diff options
Diffstat (limited to 'deps/v8/src/v8-counters.cc')
-rw-r--r-- | deps/v8/src/v8-counters.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/src/v8-counters.cc b/deps/v8/src/v8-counters.cc index 4107dd3e48..3f83dffcae 100644 --- a/deps/v8/src/v8-counters.cc +++ b/deps/v8/src/v8-counters.cc @@ -86,6 +86,17 @@ Counters::Counters() { size_of_FIXED_ARRAY_##name##_ = size_of_FIXED_ARRAY_##name; FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) #undef SC + + StatsCounter state_counters[] = { +#define COUNTER_NAME(name) \ + { "c:V8.State" #name, NULL, false }, + STATE_TAG_LIST(COUNTER_NAME) +#undef COUNTER_NAME + }; + + for (int i = 0; i < kSlidingStateWindowCounterCount; ++i) { + state_counters_[i] = state_counters[i]; + } } void Counters::ResetHistograms() { |