OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_CONTENT_COUNTERS_H_ |
8 #define CHROME_COMMON_CHROME_COUNTERS_H_ | 8 #define CONTENT_COMMON_CONTENT_COUNTERS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class StatsCounter; | 12 class StatsCounter; |
13 class StatsCounterTimer; | 13 class StatsCounterTimer; |
14 class StatsRate; | 14 class StatsRate; |
15 } | 15 } |
16 | 16 |
17 namespace chrome { | 17 namespace content { |
18 | 18 |
19 class Counters { | 19 class Counters { |
20 public: | 20 public: |
21 // The amount of time spent in chrome initialization. | 21 // The amount of time spent in chrome initialization. |
22 static base::StatsCounterTimer& chrome_main(); | 22 static base::StatsCounterTimer& chrome_main(); |
23 | 23 |
24 // The amount of time spent in renderer initialization. | 24 // The amount of time spent in renderer initialization. |
25 static base::StatsCounterTimer& renderer_main(); | 25 static base::StatsCounterTimer& renderer_main(); |
26 | |
27 // Time spent in spellchecker initialization. | |
28 static base::StatsCounterTimer& spellcheck_init(); | |
29 | |
30 // Time/Count of spellcheck lookups. | |
31 static base::StatsRate& spellcheck_lookup(); | |
32 }; | 26 }; |
33 | 27 |
34 } // namespace chrome | 28 } // namespace content |
35 | 29 |
36 #endif // CHROME_COMMON_CHROME_COUNTERS_H_ | 30 #endif // CONTENT_COMMON_CONTENT_COUNTERS_H_ |
OLD | NEW |