OLD | NEW |
| (Empty) |
1 // Copyright 2008-2009 Google Inc. | |
2 // | |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 // you may not use this file except in compliance with the License. | |
5 // You may obtain a copy of the License at | |
6 // | |
7 // http://www.apache.org/licenses/LICENSE-2.0 | |
8 // | |
9 // Unless required by applicable law or agreed to in writing, software | |
10 // distributed under the License is distributed on an "AS IS" BASIS, | |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 // See the License for the specific language governing permissions and | |
13 // limitations under the License. | |
14 // ======================================================================== | |
15 | |
16 // Declares the usage metrics used by core module. | |
17 | |
18 #ifndef OMAHA_CORE_CORE_METRICS_H_ | |
19 #define OMAHA_CORE_CORE_METRICS_H_ | |
20 | |
21 #include "omaha/statsreport/metrics.h" | |
22 | |
23 namespace omaha { | |
24 | |
25 // Core process working set and peak working set. | |
26 DECLARE_METRIC_integer(core_working_set); | |
27 DECLARE_METRIC_integer(core_peak_working_set); | |
28 | |
29 // Core process handle count. | |
30 DECLARE_METRIC_integer(core_handle_count); | |
31 | |
32 // Core process uptime, kernel, and user times. | |
33 DECLARE_METRIC_integer(core_uptime_ms); | |
34 DECLARE_METRIC_integer(core_kernel_time_ms); | |
35 DECLARE_METRIC_integer(core_user_time_ms); | |
36 | |
37 // How much free space is availble on the current drive where Omaha is | |
38 // installed. | |
39 DECLARE_METRIC_integer(core_disk_space_available); | |
40 | |
41 // How many worker and code red processes are started by the core. | |
42 DECLARE_METRIC_count(core_worker_total); | |
43 DECLARE_METRIC_count(core_worker_succeeded); | |
44 DECLARE_METRIC_count(core_cr_total); | |
45 DECLARE_METRIC_count(core_cr_succeeded); | |
46 | |
47 // The period of code red checks. | |
48 DECLARE_METRIC_integer(core_cr_expected_timer_interval_ms); | |
49 DECLARE_METRIC_integer(core_cr_actual_timer_interval_ms); | |
50 | |
51 // How many times StartCrashHandler() was called. | |
52 DECLARE_METRIC_count(core_start_crash_handler_total); | |
53 // How many times StartCrashHandler() succeeded. | |
54 DECLARE_METRIC_count(core_start_crash_handler_succeeded); | |
55 | |
56 // Service and scheduled task metrics. | |
57 DECLARE_METRIC_count(core_run_not_checking_for_updates); | |
58 DECLARE_METRIC_count(core_run_task_scheduler_not_running); | |
59 DECLARE_METRIC_count(core_run_scheduled_task_missing); | |
60 DECLARE_METRIC_count(core_run_scheduled_task_disabled); | |
61 DECLARE_METRIC_count(core_run_service_missing); | |
62 DECLARE_METRIC_count(core_run_service_disabled); | |
63 DECLARE_METRIC_integer(core_run_scheduled_task_exit_code); | |
64 | |
65 } // namespace omaha | |
66 | |
67 #endif // OMAHA_CORE_CORE_METRICS_H_ | |
68 | |
OLD | NEW |