 Chromium Code Reviews
 Chromium Code Reviews Issue 420753002:
  Added histogram to track distribution of requested idle notifications.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 420753002:
  Added histogram to track distribution of requested idle notifications.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: src/counters.cc | 
| diff --git a/src/counters.cc b/src/counters.cc | 
| index 34e8467440554c5c9612b940657e9bb5f4cf9b12..5e2a84fb76ad46e595fab97cfdb7c0ece85fc643 100644 | 
| --- a/src/counters.cc | 
| +++ b/src/counters.cc | 
| @@ -55,6 +55,10 @@ void HistogramTimer::Stop() { | 
| Counters::Counters(Isolate* isolate) { | 
| +#define HR(name, caption) name##_ = Histogram(#caption, 0, 1000, 1001, isolate); | 
| 
rmcilroy
2014/07/25 16:09:28
optional suggestion - if you want this to be gener
 
rmcilroy
2014/07/25 16:09:28
nit - newline after ")" like those below.
 
jochen (gone - plz use gerrit)
2014/07/28 08:44:43
why cap it at 1000? We might want to allow for lar
 
Hannes Payer (out of office)
2014/07/28 09:01:13
git cl format moved it up :-/ I will try to force
 
Hannes Payer (out of office)
2014/07/28 09:01:13
Good idea, done.
 
Hannes Payer (out of office)
2014/07/28 09:02:40
Yeah, I thought so as well. I increased the max, b
 | 
| + HISTOGRAM_RANGE_LIST(HR) | 
| +#undef HR | 
| + | 
| #define HT(name, caption) \ | 
| name##_ = HistogramTimer(#caption, 0, 10000, 50, isolate); | 
| HISTOGRAM_TIMER_LIST(HT) | 
| @@ -142,6 +146,10 @@ void Counters::ResetCounters() { | 
| void Counters::ResetHistograms() { | 
| +#define HR(name, caption) name##_.Reset(); | 
| + HISTOGRAM_MEMORY_LIST(HR) | 
| 
jochen (gone - plz use gerrit)
2014/07/28 08:44:43
HISTOGRAM_RANGE_LIST?
 
Hannes Payer (out of office)
2014/07/28 09:02:40
Already fixed.
 | 
| +#undef HR | 
| + | 
| #define HT(name, caption) name##_.Reset(); | 
| HISTOGRAM_TIMER_LIST(HT) | 
| #undef HT |