Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Stores information about the user's brower and system configuration. | 5 // Stores information about the user's brower and system configuration. |
| 6 // The system configuration fields are recorded once per client session. | 6 // The system configuration fields are recorded once per client session. |
| 7 | 7 |
| 8 syntax = "proto2"; | 8 syntax = "proto2"; |
| 9 | 9 |
| 10 option optimize_for = LITE_RUNTIME; | 10 option optimize_for = LITE_RUNTIME; |
| 11 | 11 |
| 12 package metrics; | 12 package metrics; |
| 13 | 13 |
| 14 // Next tag: 14 | 14 // Next tag: 15 |
| 15 message SystemProfileProto { | 15 message SystemProfileProto { |
| 16 // The time when the client was compiled/linked, in seconds since the epoch. | 16 // The time when the client was compiled/linked, in seconds since the epoch. |
| 17 optional int64 build_timestamp = 1; | 17 optional int64 build_timestamp = 1; |
| 18 | 18 |
| 19 // A version number string for the application. | 19 // A version number string for the application. |
| 20 // Most commonly this is the browser version number found in a user agent | 20 // Most commonly this is the browser version number found in a user agent |
| 21 // string, and is typically a 4-tuple of numbers separated by periods. In | 21 // string, and is typically a 4-tuple of numbers separated by periods. In |
| 22 // cases where the user agent version might be ambiguous (example: Linux 64- | 22 // cases where the user agent version might be ambiguous (example: Linux 64- |
| 23 // bit build, rather than 32-bit build, or a Windows version used in some | 23 // bit build, rather than 32-bit build, or a Windows version used in some |
| 24 // special context, such as ChromeFrame running in IE), then this may include | 24 // special context, such as ChromeFrame running in IE), then this may include |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 | 132 |
| 133 // The GPU performance statistics. | 133 // The GPU performance statistics. |
| 134 // See http://src.chromium.org/viewvc/chrome/trunk/src/content/public/comm on/gpu_performance_stats.h?view=markup | 134 // See http://src.chromium.org/viewvc/chrome/trunk/src/content/public/comm on/gpu_performance_stats.h?view=markup |
| 135 // for details. Currently logged only on Windows. | 135 // for details. Currently logged only on Windows. |
| 136 message PerformanceStatistics { | 136 message PerformanceStatistics { |
| 137 optional float graphics_score = 1; | 137 optional float graphics_score = 1; |
| 138 optional float gaming_score = 2; | 138 optional float gaming_score = 2; |
| 139 optional float overall_score = 3; | 139 optional float overall_score = 3; |
| 140 } | 140 } |
| 141 optional PerformanceStatistics performance_statistics = 5; | 141 optional PerformanceStatistics performance_statistics = 5; |
| 142 | 142 |
| 143 // The GL_VENDOR string. An example of a gl_vendor string is | 143 // The GL_VENDOR string. An example of a gl_vendor string is |
| 144 // "Imagination Technologies". "" if we are not using OpenGL. | 144 // "Imagination Technologies". "" if we are not using OpenGL. |
| 145 optional string gl_vendor = 6; | 145 optional string gl_vendor = 6; |
| 146 | 146 |
| 147 // The GL_RENDERER string. An example of a gl_renderer string is | 147 // The GL_RENDERER string. An example of a gl_renderer string is |
| 148 // "PowerVR SGX 540". "" if we are not using OpenGL. | 148 // "PowerVR SGX 540". "" if we are not using OpenGL. |
| 149 optional string gl_renderer = 7; | 149 optional string gl_renderer = 7; |
| 150 } | 150 } |
| 151 optional Graphics gpu = 8; | 151 optional Graphics gpu = 8; |
| 152 } | 152 } |
| 153 optional Hardware hardware = 6; | 153 optional Hardware hardware = 6; |
| 154 | 154 |
| 155 // Information about the network connection. | 155 // Information about the network connection. |
| 156 message Network { | 156 message Network { |
| 157 // Set to true if connection_type changed during the lifetime of the log. | 157 // Set to true if connection_type changed during the lifetime of the log. |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 message FieldTrial { | 357 message FieldTrial { |
| 358 // The name of the field trial, as a 32-bit identifier. | 358 // The name of the field trial, as a 32-bit identifier. |
| 359 // Currently, the identifier is a hash of the field trial's name. | 359 // Currently, the identifier is a hash of the field trial's name. |
| 360 optional fixed32 name_id = 1; | 360 optional fixed32 name_id = 1; |
| 361 | 361 |
| 362 // The user's group within the field trial, as a 32-bit identifier. | 362 // The user's group within the field trial, as a 32-bit identifier. |
| 363 // Currently, the identifier is a hash of the group's name. | 363 // Currently, the identifier is a hash of the group's name. |
| 364 optional fixed32 group_id = 2; | 364 optional fixed32 group_id = 2; |
| 365 } | 365 } |
| 366 repeated FieldTrial field_trial = 9; | 366 repeated FieldTrial field_trial = 9; |
| 367 | |
| 368 // Information about Bluetooth devices paired with the system. | |
| 369 message Bluetooth { | |
| 370 // Whether Bluetooth is present on this system. | |
| 371 optional bool is_present = 1; | |
| 372 | |
| 373 // Whether Bluetooth is enabled on this system. | |
| 374 optional bool is_enabled = 2; | |
| 375 | |
| 376 // Describes a paired device. | |
| 377 message PairedDevice { | |
| 378 // Assigned class of the device. | |
|
Ilya Sherman
2013/04/20 04:54:02
Please document what the class is, i.e. how to int
keybuk
2013/04/22 19:30:51
Done.
| |
| 379 optional uint32 bluetooth_class = 1; | |
| 380 | |
| 381 // Decoded device type. | |
| 382 enum Type { | |
| 383 DEVICE_UNKNOWN = 0; | |
| 384 DEVICE_COMPUTER = 1; | |
| 385 DEVICE_PHONE = 2; | |
| 386 DEVICE_MODEM = 3; | |
| 387 DEVICE_AUDIO = 4; | |
| 388 DEVICE_CAR_AUDIO = 5; | |
| 389 DEVICE_VIDEO = 6; | |
| 390 DEVICE_PERIPHERAL = 7; | |
| 391 DEVICE_JOYSTICK = 8; | |
| 392 DEVICE_GAMEPAD = 9; | |
| 393 DEVICE_KEYBOARD = 10; | |
| 394 DEVICE_MOUSE = 11; | |
| 395 DEVICE_TABLET = 12; | |
| 396 DEVICE_KEYBOARD_MOUSE_COMBO = 13; | |
| 397 } | |
| 398 optional Type type = 2; | |
| 399 | |
| 400 // Vendor prefix of the Bluetooth address. | |
|
Ilya Sherman
2013/04/20 04:54:02
Please document what this string looks like. Also
keybuk
2013/04/22 19:30:51
Done; encoded as a uint32_t
(I couldn't see a usef
Ilya Sherman
2013/04/23 00:09:43
Yeah, I'm likewise not aware of any cleaner way to
keybuk
2013/04/23 00:41:41
Sure - I had a preliminary "no problem" from the p
| |
| 401 optional string vendor_prefix = 4; | |
| 402 | |
| 403 // Vendor ID, where available. | |
| 404 optional uint32 vendor_id = 5; | |
| 405 | |
| 406 // Product ID, where available. | |
| 407 optional uint32 product_id = 6; | |
| 408 | |
| 409 // Device Release Number, where available. | |
| 410 optional uint32 bcd_device = 7; | |
| 411 } | |
| 412 repeated PairedDevice paired_device = 3; | |
| 413 } | |
| 414 optional Bluetooth bluetooth = 14; | |
|
Ilya Sherman
2013/04/20 04:54:02
This tag is actually already being used by the int
keybuk
2013/04/22 19:30:51
Done.
| |
| 367 } | 415 } |
| OLD | NEW |