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

Unified Diff: src/v8-counters.cc

Issue 42020: - Added ability to call histograms from within v8... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 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
===================================================================
--- src/v8-counters.cc (revision 1503)
+++ src/v8-counters.cc (working copy)
@@ -31,12 +31,10 @@
namespace v8 { namespace internal {
-#define SR(name, caption) \
- StatsRate Counters::name = { \
- { { "t:" #caption, NULL, false }, 0, 0 }, \
- { "c:" #caption, NULL, false } };
+#define HT(name, caption) \
+ HistogramTimer Counters::name = { #caption, NULL, false, 0, 0 }; \
- STATS_RATE_LIST(SR)
+ HISTOGRAM_TIMER_LIST(HT)
#undef SR
#define SC(name, caption) \
« 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