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

Unified Diff: src/counters.cc

Issue 2549653002: [profiler] Add CodeEvent entries for RCS counters statically on profiler start. (Closed)
Patch Set: Created 4 years 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/counters.h ('k') | src/profiler/profile-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters.cc
diff --git a/src/counters.cc b/src/counters.cc
index 0468d0fbd5b02f39cf4984955a5828db2b03aa73..911cc3d2391f544198c833d736e1cf3943031051 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -324,6 +324,10 @@ const RuntimeCallStats::CounterId RuntimeCallStats::counters[] = {
};
// static
+const int RuntimeCallStats::counters_count =
+ arraysize(RuntimeCallStats::counters);
+
+// static
void RuntimeCallStats::Enter(RuntimeCallStats* stats, RuntimeCallTimer* timer,
CounterId counter_id) {
RuntimeCallCounter* counter = &(stats->*counter_id);
« no previous file with comments | « src/counters.h ('k') | src/profiler/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698