Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1013)

Unified Diff: src/v8-counters.cc

Issue 2423: POD initialize StatsCounters (Closed)
Patch Set: Merge to HEAD Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/v8-counters.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8-counters.cc
diff --git a/src/v8-counters.cc b/src/v8-counters.cc
index f6b1c3d052c898b75821c6b53e85494b4a6adb8a..95847f6739f879fa1b95e504a24beb23e8a01bff 100644
--- a/src/v8-counters.cc
+++ b/src/v8-counters.cc
@@ -31,17 +31,24 @@
namespace v8 { namespace internal {
-#define SR(name, caption) StatsRate Counters::name(L###caption, k_##name);
+#define SR(name, caption) \
+ StatsRate Counters::name = { \
+ { { L"t:" L###caption, NULL, false }, 0, 0 }, \
+ { L"c:" L###caption, NULL, false } };
+
STATS_RATE_LIST(SR)
#undef SR
-#define SC(name, caption) StatsCounter Counters::name(L###caption, k_##name);
+#define SC(name, caption) \
+ StatsCounter Counters::name = { L"c:" L###caption, NULL, false };
+
STATS_COUNTER_LIST_1(SC)
STATS_COUNTER_LIST_2(SC)
#undef SC
-StatsCounter Counters::state_counters[state_tag_count] = {
-#define COUNTER_NAME(name) StatsCounter(L"V8.State" L###name, k_##name),
+StatsCounter Counters::state_counters[] = {
+#define COUNTER_NAME(name) \
+ { L"c:V8.State" L###name, NULL, false },
STATE_TAG_LIST(COUNTER_NAME)
#undef COUNTER_NAME
};
« no previous file with comments | « src/v8-counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698