@@ -9,71 +9,70 @@ pub struct Profile {
9
9
/// If one of the values represents the number of events represented
10
10
/// by the sample, by convention it should be at index 0 and use
11
11
/// sample_type.unit == "count".
12
- #[ prost( message, repeated, tag= "1" ) ]
12
+ #[ prost( message, repeated, tag = "1" ) ]
13
13
pub sample_type : :: prost:: alloc:: vec:: Vec < ValueType > ,
14
14
/// The set of samples recorded in this profile.
15
- #[ prost( message, repeated, tag= "2" ) ]
15
+ #[ prost( message, repeated, tag = "2" ) ]
16
16
pub sample : :: prost:: alloc:: vec:: Vec < Sample > ,
17
17
/// Mapping from address ranges to the image/binary/library mapped
18
18
/// into that address range. mapping\[0\] will be the main binary.
19
- #[ prost( message, repeated, tag= "3" ) ]
19
+ #[ prost( message, repeated, tag = "3" ) ]
20
20
pub mapping : :: prost:: alloc:: vec:: Vec < Mapping > ,
21
21
/// Useful program location
22
- #[ prost( message, repeated, tag= "4" ) ]
22
+ #[ prost( message, repeated, tag = "4" ) ]
23
23
pub location : :: prost:: alloc:: vec:: Vec < Location > ,
24
24
/// Functions referenced by locations
25
- #[ prost( message, repeated, tag= "5" ) ]
25
+ #[ prost( message, repeated, tag = "5" ) ]
26
26
pub function : :: prost:: alloc:: vec:: Vec < Function > ,
27
27
/// A common table for strings referenced by various messages.
28
28
/// string_table\[0\] must always be "".
29
- #[ prost( string, repeated, tag= "6" ) ]
29
+ #[ prost( string, repeated, tag = "6" ) ]
30
30
pub string_table : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
31
31
/// frames with Function.function_name fully matching the following
32
32
/// regexp will be dropped from the samples, along with their successors.
33
33
///
34
34
/// Index into string table.
35
- #[ prost( int64, tag= "7" ) ]
35
+ #[ prost( int64, tag = "7" ) ]
36
36
pub drop_frames : i64 ,
37
37
/// frames with Function.function_name fully matching the following
38
38
/// regexp will be kept, even if it matches drop_frames.
39
39
///
40
40
/// Index into string table.
41
- #[ prost( int64, tag= "8" ) ]
41
+ #[ prost( int64, tag = "8" ) ]
42
42
pub keep_frames : i64 ,
43
43
// The following fields are informational, do not affect
44
44
// interpretation of results.
45
-
46
45
/// Time of collection (UTC) represented as nanoseconds past the epoch.
47
- #[ prost( int64, tag= "9" ) ]
46
+ #[ prost( int64, tag = "9" ) ]
48
47
pub time_nanos : i64 ,
49
48
/// Duration of the profile, if a duration makes sense.
50
- #[ prost( int64, tag= "10" ) ]
49
+ #[ prost( int64, tag = "10" ) ]
51
50
pub duration_nanos : i64 ,
52
51
/// The kind of events between sampled ocurrences.
53
52
/// e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
54
- #[ prost( message, optional, tag= "11" ) ]
53
+ #[ prost( message, optional, tag = "11" ) ]
55
54
pub period_type : :: core:: option:: Option < ValueType > ,
56
55
/// The number of events between sampled occurrences.
57
- #[ prost( int64, tag= "12" ) ]
56
+ #[ prost( int64, tag = "12" ) ]
58
57
pub period : i64 ,
59
58
/// Freeform text associated to the profile.
60
59
///
61
60
/// Indices into string table.
62
- #[ prost( int64, repeated, tag= "13" ) ]
61
+ #[ prost( int64, repeated, tag = "13" ) ]
63
62
pub comment : :: prost:: alloc:: vec:: Vec < i64 > ,
64
63
/// Index into the string table of the type of the preferred sample
65
64
/// value. If unset, clients should default to the last sample value.
66
- #[ prost( int64, tag= "14" ) ]
65
+ #[ prost( int64, tag = "14" ) ]
67
66
pub default_sample_type : i64 ,
68
67
}
69
68
/// ValueType describes the semantics and measurement units of a value.
70
69
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
71
70
pub struct ValueType {
72
71
/// Index into string table.
73
- #[ prost( int64, tag= "1" ) ]
72
+ #[ prost( int64, tag = "1" ) ]
74
73
pub r#type : i64 ,
75
74
/// Index into string table.
76
- #[ prost( int64, tag= "2" ) ]
75
+ #[ prost( int64, tag = "2" ) ]
77
76
pub unit : i64 ,
78
77
}
79
78
/// Each Sample records values encountered in some program
@@ -84,32 +83,32 @@ pub struct ValueType {
84
83
pub struct Sample {
85
84
/// The ids recorded here correspond to a Profile.location.id.
86
85
/// The leaf is at location_id\[0\].
87
- #[ prost( uint64, repeated, tag= "1" ) ]
86
+ #[ prost( uint64, repeated, tag = "1" ) ]
88
87
pub location_id : :: prost:: alloc:: vec:: Vec < u64 > ,
89
88
/// The type and unit of each value is defined by the corresponding
90
89
/// entry in Profile.sample_type. All samples must have the same
91
90
/// number of values, the same as the length of Profile.sample_type.
92
91
/// When aggregating multiple samples into a single sample, the
93
92
/// result has a list of values that is the element-wise sum of the
94
93
/// lists of the originals.
95
- #[ prost( int64, repeated, tag= "2" ) ]
94
+ #[ prost( int64, repeated, tag = "2" ) ]
96
95
pub value : :: prost:: alloc:: vec:: Vec < i64 > ,
97
96
/// label includes additional context for this sample. It can include
98
97
/// things like a thread id, allocation size, etc
99
- #[ prost( message, repeated, tag= "3" ) ]
98
+ #[ prost( message, repeated, tag = "3" ) ]
100
99
pub label : :: prost:: alloc:: vec:: Vec < Label > ,
101
100
}
102
101
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
103
102
pub struct Label {
104
103
/// Index into string table
105
- #[ prost( int64, tag= "1" ) ]
104
+ #[ prost( int64, tag = "1" ) ]
106
105
pub key : i64 ,
107
106
/// At most one of the following must be present
108
107
///
109
108
/// Index into string table
110
- #[ prost( int64, tag= "2" ) ]
109
+ #[ prost( int64, tag = "2" ) ]
111
110
pub str : i64 ,
112
- #[ prost( int64, tag= "3" ) ]
111
+ #[ prost( int64, tag = "3" ) ]
113
112
pub num : i64 ,
114
113
/// Should only be present when num is present.
115
114
/// Specifies the units of num.
@@ -120,65 +119,65 @@ pub struct Label {
120
119
/// and apply appropriate unit conversions to these.
121
120
///
122
121
/// Index into string table
123
- #[ prost( int64, tag= "4" ) ]
122
+ #[ prost( int64, tag = "4" ) ]
124
123
pub num_unit : i64 ,
125
124
}
126
125
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
127
126
pub struct Mapping {
128
127
/// Unique nonzero id for the mapping.
129
- #[ prost( uint64, tag= "1" ) ]
128
+ #[ prost( uint64, tag = "1" ) ]
130
129
pub id : u64 ,
131
130
/// Address at which the binary (or DLL) is loaded into memory.
132
- #[ prost( uint64, tag= "2" ) ]
131
+ #[ prost( uint64, tag = "2" ) ]
133
132
pub memory_start : u64 ,
134
133
/// The limit of the address range occupied by this mapping.
135
- #[ prost( uint64, tag= "3" ) ]
134
+ #[ prost( uint64, tag = "3" ) ]
136
135
pub memory_limit : u64 ,
137
136
/// Offset in the binary that corresponds to the first mapped address.
138
- #[ prost( uint64, tag= "4" ) ]
137
+ #[ prost( uint64, tag = "4" ) ]
139
138
pub file_offset : u64 ,
140
139
/// The object this entry is loaded from. This can be a filename on
141
140
/// disk for the main binary and shared libraries, or virtual
142
141
/// abstractions like "\[vdso\]".
143
142
///
144
143
/// Index into string table
145
- #[ prost( int64, tag= "5" ) ]
144
+ #[ prost( int64, tag = "5" ) ]
146
145
pub filename : i64 ,
147
146
/// A string that uniquely identifies a particular program version
148
147
/// with high probability. E.g., for binaries generated by GNU tools,
149
148
/// it could be the contents of the .note.gnu.build-id field.
150
149
///
151
150
/// Index into string table
152
- #[ prost( int64, tag= "6" ) ]
151
+ #[ prost( int64, tag = "6" ) ]
153
152
pub build_id : i64 ,
154
153
/// The following fields indicate the resolution of symbolic info.
155
- #[ prost( bool , tag= "7" ) ]
154
+ #[ prost( bool , tag = "7" ) ]
156
155
pub has_functions : bool ,
157
- #[ prost( bool , tag= "8" ) ]
156
+ #[ prost( bool , tag = "8" ) ]
158
157
pub has_filenames : bool ,
159
- #[ prost( bool , tag= "9" ) ]
158
+ #[ prost( bool , tag = "9" ) ]
160
159
pub has_line_numbers : bool ,
161
- #[ prost( bool , tag= "10" ) ]
160
+ #[ prost( bool , tag = "10" ) ]
162
161
pub has_inline_frames : bool ,
163
162
}
164
163
/// Describes function and line table debug information.
165
164
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
166
165
pub struct Location {
167
166
/// Unique nonzero id for the location. A profile could use
168
167
/// instruction addresses or any integer sequence as ids.
169
- #[ prost( uint64, tag= "1" ) ]
168
+ #[ prost( uint64, tag = "1" ) ]
170
169
pub id : u64 ,
171
170
/// The id of the corresponding profile.Mapping for this location.
172
171
/// It can be unset if the mapping is unknown or not applicable for
173
172
/// this profile type.
174
- #[ prost( uint64, tag= "2" ) ]
173
+ #[ prost( uint64, tag = "2" ) ]
175
174
pub mapping_id : u64 ,
176
175
/// The instruction address for this location, if available. It
177
176
/// should be within \[Mapping.memory_start...Mapping.memory_limit\]
178
177
/// for the corresponding mapping. A non-leaf address may be in the
179
178
/// middle of a call instruction. It is up to display tools to find
180
179
/// the beginning of the instruction if necessary.
181
- #[ prost( uint64, tag= "3" ) ]
180
+ #[ prost( uint64, tag = "3" ) ]
182
181
pub address : u64 ,
183
182
/// Multiple line indicates this location has inlined functions,
184
183
/// where the last entry represents the caller into which the
@@ -187,48 +186,48 @@ pub struct Location {
187
186
/// E.g., if memcpy() is inlined into printf:
188
187
/// line\[0\].function_name == "memcpy"
189
188
/// line\[1\].function_name == "printf"
190
- #[ prost( message, repeated, tag= "4" ) ]
189
+ #[ prost( message, repeated, tag = "4" ) ]
191
190
pub line : :: prost:: alloc:: vec:: Vec < Line > ,
192
191
/// Provides an indication that multiple symbols map to this location's
193
192
/// address, for example due to identical code folding by the linker. In that
194
193
/// case the line information above represents one of the multiple
195
194
/// symbols. This field must be recomputed when the symbolization state of the
196
195
/// profile changes.
197
- #[ prost( bool , tag= "5" ) ]
196
+ #[ prost( bool , tag = "5" ) ]
198
197
pub is_folded : bool ,
199
198
}
200
199
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
201
200
pub struct Line {
202
201
/// The id of the corresponding profile.Function for this line.
203
- #[ prost( uint64, tag= "1" ) ]
202
+ #[ prost( uint64, tag = "1" ) ]
204
203
pub function_id : u64 ,
205
204
/// Line number in source code.
206
- #[ prost( int64, tag= "2" ) ]
205
+ #[ prost( int64, tag = "2" ) ]
207
206
pub line : i64 ,
208
207
}
209
208
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
210
209
pub struct Function {
211
210
/// Unique nonzero id for the function.
212
- #[ prost( uint64, tag= "1" ) ]
211
+ #[ prost( uint64, tag = "1" ) ]
213
212
pub id : u64 ,
214
213
/// Name of the function, in human-readable form if available.
215
214
///
216
215
/// Index into string table
217
- #[ prost( int64, tag= "2" ) ]
216
+ #[ prost( int64, tag = "2" ) ]
218
217
pub name : i64 ,
219
218
/// Name of the function, as identified by the system.
220
219
/// For instance, it can be a C++ mangled name.
221
220
///
222
221
/// Index into string table
223
- #[ prost( int64, tag= "3" ) ]
222
+ #[ prost( int64, tag = "3" ) ]
224
223
pub system_name : i64 ,
225
224
/// Source file containing the function.
226
225
///
227
226
/// Index into string table
228
- #[ prost( int64, tag= "4" ) ]
227
+ #[ prost( int64, tag = "4" ) ]
229
228
pub filename : i64 ,
230
229
/// Line number in source file.
231
- #[ prost( int64, tag= "5" ) ]
230
+ #[ prost( int64, tag = "5" ) ]
232
231
pub start_line : i64 ,
233
232
}
234
233
// @@protoc_insertion_point(module)
0 commit comments