summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_counters.h
blob: e53d5b262c8ba8b46ec400551d11654f05e9e8d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Counters used within the browser.

#ifndef CHROME_COMMON_CHROME_COUNTERS_H_
#define CHROME_COMMON_CHROME_COUNTERS_H_
#pragma once

namespace base {
class StatsCounter;
class StatsCounterTimer;
class StatsRate;
}

namespace chrome {

class Counters {
 public:
  // The amount of time spent in chrome initialization.
  static base::StatsCounterTimer& chrome_main();

  // The amount of time spent in renderer initialization.
  static base::StatsCounterTimer& renderer_main();

  // Time spent in spellchecker initialization.
  static base::StatsCounterTimer& spellcheck_init();

  // Time/Count of spellcheck lookups.
  static base::StatsRate& spellcheck_lookup();

  // Time spent loading the Chrome plugins.
  static base::StatsCounterTimer& plugin_load();

  // Time/Count of plugin network interception.
  static base::StatsRate& plugin_intercept();
};

}  // namespace chrome

#endif  // CHROME_COMMON_CHROME_COUNTERS_H_