OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // Counters used within the browser. | |
6 | |
7 #ifndef CHROME_COMMON_CHROME_COUNTERS_H_ | |
8 #define CHROME_COMMON_CHROME_COUNTERS_H_ | |
9 #pragma once | |
10 | |
11 namespace base { | |
12 class StatsCounter; | |
13 class StatsCounterTimer; | |
14 class StatsRate; | |
15 } | |
16 | |
17 namespace chrome { | |
18 | |
19 class Counters { | |
20 public: | |
21 // The amount of time spent in chrome initialization. | |
22 static base::StatsCounterTimer& chrome_main(); | |
23 | |
24 // The amount of time spent in renderer initialization. | |
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 }; | |
33 | |
34 } // namespace chrome | |
35 | |
36 #endif // CHROME_COMMON_CHROME_COUNTERS_H_ | |
OLD | NEW |