| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Counters used within the browser. | 5 // Counters used within the browser. |
| 6 | 6 |
| 7 #ifndef CHROME_COMMON_CHROME_COUNTERS_H_ | 7 #ifndef CHROME_COMMON_CHROME_COUNTERS_H_ |
| 8 #define CHROME_COMMON_CHROME_COUNTERS_H_ | 8 #define CHROME_COMMON_CHROME_COUNTERS_H_ |
| 9 | 9 |
| 10 class StatsCounter; | 10 class StatsCounter; |
| 11 class StatsCounterTimer; | 11 class StatsCounterTimer; |
| 12 class StatsRate; | 12 class StatsRate; |
| 13 | 13 |
| 14 namespace chrome { | 14 namespace chrome { |
| 15 | 15 |
| 16 class Counters { | 16 class Counters { |
| 17 public: | 17 public: |
| 18 // The number of messages sent on IPC channels. | |
| 19 static StatsCounter& ipc_send_counter(); | |
| 20 | |
| 21 // The amount of time spent in chrome initialization. | 18 // The amount of time spent in chrome initialization. |
| 22 static StatsCounterTimer& chrome_main(); | 19 static StatsCounterTimer& chrome_main(); |
| 23 | 20 |
| 24 // The amount of time spent in renderer initialization. | 21 // The amount of time spent in renderer initialization. |
| 25 static StatsCounterTimer& renderer_main(); | 22 static StatsCounterTimer& renderer_main(); |
| 26 | 23 |
| 27 // Time spent in spellchecker initialization. | 24 // Time spent in spellchecker initialization. |
| 28 static StatsCounterTimer& spellcheck_init(); | 25 static StatsCounterTimer& spellcheck_init(); |
| 29 | 26 |
| 30 // Time/Count of spellcheck lookups. | 27 // Time/Count of spellcheck lookups. |
| 31 static StatsRate& spellcheck_lookup(); | 28 static StatsRate& spellcheck_lookup(); |
| 32 | 29 |
| 33 // Time spent loading the Chrome plugins. | 30 // Time spent loading the Chrome plugins. |
| 34 static StatsCounterTimer& plugin_load(); | 31 static StatsCounterTimer& plugin_load(); |
| 35 | 32 |
| 36 // Time/Count of plugin network interception. | 33 // Time/Count of plugin network interception. |
| 37 static StatsRate& plugin_intercept(); | 34 static StatsRate& plugin_intercept(); |
| 38 }; | 35 }; |
| 39 | 36 |
| 40 } // namespace chrome | 37 } // namespace chrome |
| 41 | 38 |
| 42 #endif // CHROME_COMMON_CHROME_COUNTERS_H_ | 39 #endif // CHROME_COMMON_CHROME_COUNTERS_H_ |
| OLD | NEW |