| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package browser_watcher; | 9 package browser_watcher; |
| 10 | 10 |
| 11 // The state of the system on which Chrome is running (shutting down, battery | 11 // The state of the system on which Chrome is running (shutting down, battery |
| 12 // level, load, etc.). | 12 // level, load, etc.). |
| 13 // Next id: 1 | 13 // Next id: 1 |
| 14 message SystemState { | 14 message SystemState { |
| 15 // TODO(manzagop): flesh out. | 15 // TODO(manzagop): flesh out. |
| 16 } | 16 } |
| 17 | 17 |
| 18 // Next id: 8 | 18 // Next id: 10 |
| 19 message CodeModule { | 19 message CodeModule { |
| 20 // The base address of this code module as it was loaded by the process. | 20 // The base address of this code module as it was loaded by the process. |
| 21 optional int64 base_address = 1; | 21 optional int64 base_address = 1; |
| 22 | 22 |
| 23 // The size of the code module. | 23 // The size of the code module. |
| 24 optional int64 size = 2; | 24 optional int64 size = 2; |
| 25 | 25 |
| 26 // The path or file name that the code module was loaded from. | 26 // The path or file name that the code module was loaded from. |
| 27 optional string code_file = 3; | 27 optional string code_file = 3; |
| 28 | 28 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 // An identifying string similar to code_identifier, but identifies a | 43 // An identifying string similar to code_identifier, but identifies a |
| 44 // specific version and build of the associated debug file. This may be | 44 // specific version and build of the associated debug file. This may be |
| 45 // the same as code_identifier when the debug_file and code_file are | 45 // the same as code_identifier when the debug_file and code_file are |
| 46 // identical or when the same identifier is used to identify distinct | 46 // identical or when the same identifier is used to identify distinct |
| 47 // debug and code files. | 47 // debug and code files. |
| 48 optional string debug_identifier = 6; | 48 optional string debug_identifier = 6; |
| 49 | 49 |
| 50 // A human-readable representation of the code module's version. | 50 // A human-readable representation of the code module's version. |
| 51 optional string version = 7; | 51 optional string version = 7; |
| 52 |
| 53 optional int64 shrink_down_delta = 8; |
| 54 |
| 55 // Whether the module was still loaded into memory. |
| 56 optional bool is_unloaded = 9; |
| 52 } | 57 } |
| 53 | 58 |
| 54 // A typed value holds values of interest or references to such values. | 59 // A typed value holds values of interest or references to such values. |
| 55 // Next id: 9 | 60 // Next id: 9 |
| 56 message TypedValue { | 61 message TypedValue { |
| 57 // A reference to a value of interest. | 62 // A reference to a value of interest. |
| 58 message Reference { | 63 message Reference { |
| 59 optional uint64 address = 1; | 64 optional uint64 address = 1; |
| 60 optional int64 size = 2; | 65 optional int64 size = 2; |
| 61 } | 66 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // processes, or whether it's preferable to have separate fields per type. | 158 // processes, or whether it's preferable to have separate fields per type. |
| 154 // TODO(manzagop): add information about the type of process, pid, process | 159 // TODO(manzagop): add information about the type of process, pid, process |
| 155 // times (e.g. start time), hierarchical relationships (e.g. parent pid), | 160 // times (e.g. start time), hierarchical relationships (e.g. parent pid), |
| 156 // command line, etc. | 161 // command line, etc. |
| 157 repeated ProcessState process_states = 2; | 162 repeated ProcessState process_states = 2; |
| 158 // TODO(manzagop): if/when reports contain multiple processes, attribute and | 163 // TODO(manzagop): if/when reports contain multiple processes, attribute and |
| 159 // relocate these to their process (and perhaps thread). | 164 // relocate these to their process (and perhaps thread). |
| 160 repeated string log_messages = 3; | 165 repeated string log_messages = 3; |
| 161 map<string, TypedValue> global_data = 4; | 166 map<string, TypedValue> global_data = 4; |
| 162 } | 167 } |
| OLD | NEW |