Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Side by Side Diff: components/browser_watcher/stability_report.proto

Issue 2748823002: Stability file: collect generic activities (Closed)
Patch Set: Update dump_postmortem Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/browser_watcher/postmortem_report_extractor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 string string_value = 3; 80 string string_value = 3;
81 Reference string_reference = 4; 81 Reference string_reference = 4;
82 string char_value = 5; 82 string char_value = 5;
83 bool bool_value = 6; 83 bool bool_value = 6;
84 int64 signed_value = 7; 84 int64 signed_value = 7;
85 uint64 unsigned_value = 8; 85 uint64 unsigned_value = 8;
86 } 86 }
87 } 87 }
88 88
89 // An activity represents information about something of interest on a thread. 89 // An activity represents information about something of interest on a thread.
90 // Next id: 11 90 // Next id: 14
91 message Activity { 91 message Activity {
92 enum Type { 92 enum Type {
93 UNKNOWN = 0; 93 UNKNOWN = 0;
94 ACT_TASK_RUN = 1; 94 ACT_TASK_RUN = 1;
95 ACT_LOCK_ACQUIRE = 2; 95 ACT_LOCK_ACQUIRE = 2;
96 ACT_EVENT_WAIT = 3; 96 ACT_EVENT_WAIT = 3;
97 ACT_THREAD_JOIN = 4; 97 ACT_THREAD_JOIN = 4;
98 ACT_PROCESS_WAIT = 5; 98 ACT_PROCESS_WAIT = 5;
99 ACT_GENERIC = 6;
99 } 100 }
100 101
101 // Identifies the type of the activity (and specifies which fields are 102 // Identifies the type of the activity (and specifies which fields are
102 // relevant). 103 // relevant).
103 optional Type type = 1; 104 optional Type type = 1;
104 105
105 // Creation time of the activity. 106 // Creation time of the activity.
106 optional int64 time = 2; 107 optional int64 time = 2;
107 108
108 // The address that is the origin of the activity. 109 // The address that pushed the activity onto the stack.
109 // Expected for ACT_TASK_* 110 optional uint64 address = 11;
111
112 // The address that is the origin of the activity. This is useful for things
113 // like tasks that are posted from a completely different thread though most
114 // activities will leave it null.
110 optional uint64 origin_address = 3; 115 optional uint64 origin_address = 3;
111 116
112 // The sequence identifier of the posted task. 117 // The sequence identifier of the posted task.
113 // Expected for ACT_TASK_* 118 // Expected for ACT_TASK_*
114 optional uint64 task_sequence_id = 4; 119 optional uint64 task_sequence_id = 4;
115 120
116 // The memory address of the lock object. 121 // The memory address of the lock object.
117 optional uint64 lock_address = 5; 122 optional uint64 lock_address = 5;
118 123
119 // The memory address of the event object. 124 // The memory address of the event object.
120 optional uint64 event_address = 6; 125 optional uint64 event_address = 6;
121 126
122 // A unique identifier for a thread within a process. 127 // A unique identifier for a thread within a process.
123 optional int64 thread_id = 7; 128 optional int64 thread_id = 7;
124 129
125 // A unique identifier for a process. 130 // A unique identifier for a process.
126 optional int64 process_id = 8; 131 optional int64 process_id = 8;
127 132
133 // An arbitrary identifier used for association.
134 optional uint32 generic_id = 12;
135
136 // An arbitrary value used for information purposes.
137 optional int32 generic_data = 13;
138
128 // Tag id 10 is reserved for server side augmentation. 139 // Tag id 10 is reserved for server side augmentation.
129 140
130 // A key-value store. 141 // A key-value store.
131 map<string, TypedValue> user_data = 9; 142 map<string, TypedValue> user_data = 9;
132 } 143 }
133 144
134 // The state of a thread. 145 // The state of a thread.
135 // Next id: 5 146 // Next id: 5
136 message ThreadState { 147 message ThreadState {
137 // The name of the thread, up to a maxiumum length. 148 // The name of the thread, up to a maxiumum length.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // command line, etc. 197 // command line, etc.
187 repeated ProcessState process_states = 2; 198 repeated ProcessState process_states = 2;
188 // TODO(manzagop): if/when reports contain multiple processes, attribute and 199 // TODO(manzagop): if/when reports contain multiple processes, attribute and
189 // relocate these to their process (and perhaps thread). 200 // relocate these to their process (and perhaps thread).
190 repeated string log_messages = 3; 201 repeated string log_messages = 3;
191 map<string, TypedValue> global_data = 4; 202 map<string, TypedValue> global_data = 4;
192 203
193 // The field trials the user is currently enrolled in. 204 // The field trials the user is currently enrolled in.
194 repeated FieldTrial field_trials = 5; 205 repeated FieldTrial field_trials = 5;
195 } 206 }
OLDNEW
« no previous file with comments | « components/browser_watcher/postmortem_report_extractor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698