OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Protocol buffer for Chrome UMA (User Metrics Analysis). | 5 // Protocol buffer for Chrome UMA (User Metrics Analysis). |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package metrics; | 11 package metrics; |
12 | 12 |
13 import "histogram_event.proto"; | 13 import "histogram_event.proto"; |
14 import "omnibox_event.proto"; | 14 import "omnibox_event.proto"; |
15 import "profiler_event.proto"; | 15 import "profiler_event.proto"; |
16 import "system_profile.proto"; | 16 import "system_profile.proto"; |
17 import "user_action_event.proto"; | 17 import "user_action_event.proto"; |
18 import "perf_data.proto"; | 18 import "perf_data.proto"; |
19 import "sampled_profile.proto"; | 19 import "sampled_profile.proto"; |
20 | 20 |
21 // Next tag: 12 | 21 // Next tag: 12 |
22 message ChromeUserMetricsExtension { | 22 message ChromeUserMetricsExtension { |
23 // The product (i.e. end user application) for a given UMA log. | 23 // The product (i.e. end user application) for a given UMA log. |
24 enum Product { | 24 enum Product { |
25 // Google Chrome product family. | 25 // Google Chrome product family. |
26 CHROME = 0; | 26 CHROME = 0; |
27 } | 27 } |
28 // The product corresponding to this log. Note: The default value is Chrome, | 28 // The product corresponding to this log. The field type is int32 instead of |
29 // so Chrome products will not transmit this field. | 29 // Product so that downstream users of the Chromium metrics component can |
30 optional Product product = 10 [default = CHROME]; | 30 // introduce products without needing to make changes to the Chromium code |
| 31 // (though they still need to add the new product to the server-side enum). |
| 32 // Note: The default value is Chrome, so Chrome products will not transmit |
| 33 // this field. |
| 34 optional int32 product = 10 [default = 0]; |
31 | 35 |
32 // The id of the client install that generated these events. | 36 // The id of the client install that generated these events. |
33 // | 37 // |
34 // For Chrome clients, this id is unique to a top-level (one level above the | 38 // For Chrome clients, this id is unique to a top-level (one level above the |
35 // "Default" directory) Chrome user data directory [1], and so is shared among | 39 // "Default" directory) Chrome user data directory [1], and so is shared among |
36 // all Chrome user profiles contained in this user data directory. | 40 // all Chrome user profiles contained in this user data directory. |
37 // An id of 0 is reserved for test data (monitoring and internal testing) and | 41 // An id of 0 is reserved for test data (monitoring and internal testing) and |
38 // should normally be ignored in analysis of the data. | 42 // should normally be ignored in analysis of the data. |
39 // [1] http://www.chromium.org/user-experience/user-data-directory | 43 // [1] http://www.chromium.org/user-experience/user-data-directory |
40 optional fixed64 client_id = 1; | 44 optional fixed64 client_id = 1; |
(...skipping 13 matching lines...) Expand all Loading... |
54 repeated OmniboxEventProto omnibox_event = 5; | 58 repeated OmniboxEventProto omnibox_event = 5; |
55 repeated HistogramEventProto histogram_event = 6; | 59 repeated HistogramEventProto histogram_event = 6; |
56 repeated ProfilerEventProto profiler_event = 7; | 60 repeated ProfilerEventProto profiler_event = 7; |
57 | 61 |
58 // TODO(sque): Deprecate this field and use |sampled_profile| instead. | 62 // TODO(sque): Deprecate this field and use |sampled_profile| instead. |
59 repeated PerfDataProto perf_data = 8; | 63 repeated PerfDataProto perf_data = 8; |
60 | 64 |
61 // A list of all collected sample-based profiles since the last UMA upload. | 65 // A list of all collected sample-based profiles since the last UMA upload. |
62 repeated SampledProfile sampled_profile = 11; | 66 repeated SampledProfile sampled_profile = 11; |
63 } | 67 } |
OLD | NEW |