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 #ifndef CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 | 50 |
51 // Registers all user actions external to the browser. | 51 // Registers all user actions external to the browser. |
52 void InitializeUserActions(); | 52 void InitializeUserActions(); |
53 | 53 |
54 // Passes an action event to the UMA service on the UI thread. | 54 // Passes an action event to the UMA service on the UI thread. |
55 void RecordActionUI(std::string action_string); | 55 void RecordActionUI(std::string action_string); |
56 | 56 |
57 // Passes an action event to the UMA service. | 57 // Passes an action event to the UMA service. |
58 void RecordAction(const char* action_name); | 58 void RecordAction(const char* action_name); |
59 | 59 |
60 // Records an external crash of the given string description to | |
61 // UMA service on the UI thread. | |
62 void RecordCrashUI(const std::string &action_string); | |
petkov
2011/01/06 18:50:36
I think they use */& to the left (std::string&) in
kmixter1
2011/01/14 00:07:02
Done.
| |
63 | |
64 // Records an external crash of the given string description. | |
65 void RecordCrash(const std::string &crash_kind); | |
66 | |
60 // Passes an histogram event to the UMA service. |histogram_data| is in the | 67 // Passes an histogram event to the UMA service. |histogram_data| is in the |
61 // form <histogram-name> <sample> <min> <max> <buckets_count>. | 68 // form <histogram-name> <sample> <min> <max> <buckets_count>. |
62 void RecordHistogram(const char* histogram_data); | 69 void RecordHistogram(const char* histogram_data); |
63 | 70 |
64 // Passes a linear histogram event to the UMA service. |histogram_data| is | 71 // Passes a linear histogram event to the UMA service. |histogram_data| is |
65 // in the form <histogram-name> <sample> <max>. | 72 // in the form <histogram-name> <sample> <max>. |
66 void RecordLinearHistogram(const char* histogram_data); | 73 void RecordLinearHistogram(const char* histogram_data); |
67 | 74 |
68 // Collects external events from metrics log file. This is run at periodic | 75 // Collects external events from metrics log file. This is run at periodic |
69 // intervals. | 76 // intervals. |
(...skipping 10 matching lines...) Expand all Loading... | |
80 | 87 |
81 // Used for testing only. | 88 // Used for testing only. |
82 RecorderType test_recorder_; | 89 RecorderType test_recorder_; |
83 FilePath test_path_; | 90 FilePath test_path_; |
84 DISALLOW_COPY_AND_ASSIGN(ExternalMetrics); | 91 DISALLOW_COPY_AND_ASSIGN(ExternalMetrics); |
85 }; | 92 }; |
86 | 93 |
87 } // namespace chromeos | 94 } // namespace chromeos |
88 | 95 |
89 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ | 96 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ |
OLD | NEW |