35 Counters::Counters(Isolate* isolate) {
36 #define HT(name, caption) \
37 name##_ = HistogramTimer(#caption, 0, 10000, 50, isolate);
41 #define HP(name, caption) \
42 name##_ = Histogram(#caption, 0, 101, 100, isolate);
46 #define HM(name, caption) \
47 name##_ = Histogram(#caption, 1000, 500000, 50, isolate);
51 #define SC(name, caption) \
52 name##_ = StatsCounter(isolate, "c:" #caption);
59 count_of_##name##_ = StatsCounter(isolate, "c:" "V8.CountOf_" #name); \
60 size_of_##name##_ = StatsCounter(isolate, "c:" "V8.SizeOf_" #name);
65 count_of_CODE_TYPE_##name##_ = \
66 StatsCounter(isolate, "c:" "V8.CountOf_CODE_TYPE-" #name); \
67 size_of_CODE_TYPE_##name##_ = \
68 StatsCounter(isolate, "c:" "V8.SizeOf_CODE_TYPE-" #name);
73 count_of_FIXED_ARRAY_##name##_ = \
74 StatsCounter(isolate, "c:" "V8.CountOf_FIXED_ARRAY-" #name); \
75 size_of_FIXED_ARRAY_##name##_ = \
76 StatsCounter(isolate, "c:" "V8.SizeOf_FIXED_ARRAY-" #name);
81 count_of_CODE_AGE_##name##_ = \
82 StatsCounter(isolate, "c:" "V8.CountOf_CODE_AGE-" #name); \
83 size_of_CODE_AGE_##name##_ = \
84 StatsCounter(isolate, "c:" "V8.SizeOf_CODE_AGE-" #name);
91 #define HT(name, caption) name##_.Reset();
95 #define HP(name, caption) name##_.Reset();
99 #define HM(name, caption) name##_.Reset();
#define CODE_AGE_LIST_COMPLETE(V)
#define INSTANCE_TYPE_LIST(V)
#define HM(name, caption)
#define STATS_COUNTER_LIST_2(SC)
#define HISTOGRAM_MEMORY_LIST(HM)
#define HISTOGRAM_PERCENTAGE_LIST(HP)
#define HT(name, caption)
#define FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(V)
#define CODE_KIND_LIST(V)
#define SC(name, caption)
#define HISTOGRAM_TIMER_LIST(HT)
#define HP(name, caption)
#define STATS_COUNTER_LIST_1(SC)