| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/chrome_counters.h" | 5 #include "chrome/common/chrome_counters.h" |
| 6 | 6 |
| 7 #include "base/metrics/stats_counters.h" | 7 #include "base/metrics/stats_counters.h" |
| 8 | 8 |
| 9 namespace chrome { | 9 namespace chrome { |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 StatsCounterTimer& Counters::spellcheck_init() { | 35 StatsCounterTimer& Counters::spellcheck_init() { |
| 36 static StatsCounterTimer* ctr = new StatsCounterTimer("SpellCheck.Init"); | 36 static StatsCounterTimer* ctr = new StatsCounterTimer("SpellCheck.Init"); |
| 37 return *ctr; | 37 return *ctr; |
| 38 } | 38 } |
| 39 | 39 |
| 40 StatsRate& Counters::spellcheck_lookup() { | 40 StatsRate& Counters::spellcheck_lookup() { |
| 41 static StatsRate* ctr = new StatsRate("SpellCheck.Lookup"); | 41 static StatsRate* ctr = new StatsRate("SpellCheck.Lookup"); |
| 42 return *ctr; | 42 return *ctr; |
| 43 } | 43 } |
| 44 | 44 |
| 45 StatsCounterTimer& Counters::plugin_load() { | |
| 46 static StatsCounterTimer* ctr = new StatsCounterTimer("ChromePlugin.Load"); | |
| 47 return *ctr; | |
| 48 } | |
| 49 | |
| 50 StatsRate& Counters::plugin_intercept() { | |
| 51 static StatsRate* ctr = new StatsRate("ChromePlugin.Intercept"); | |
| 52 return *ctr; | |
| 53 } | |
| 54 | |
| 55 } // namespace chrome | 45 } // namespace chrome |
| OLD | NEW |