File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -179,11 +179,10 @@ pub fn perform_analysis(data: ProfilingData) -> Results {
179
179
data. incremental_load_time -= current_event_duration;
180
180
}
181
181
_ => {
182
- eprintln ! (
183
- "Unexpectedly enountered event `{:?}`, \
184
- while top of stack was `{:?}`. Ignoring.",
185
- current_event, current_top
186
- ) ;
182
+ // Data sources other than rustc will use their own event kinds so
183
+ // just treat this like a GENERIC_ACTIVITY except that we don't
184
+ // track cache misses since those may not apply to all data sources.
185
+ data. self_time -= current_event_duration;
187
186
}
188
187
} ,
189
188
) ;
@@ -216,11 +215,15 @@ pub fn perform_analysis(data: ProfilingData) -> Results {
216
215
} ) ;
217
216
}
218
217
219
- unknown_event_kind => {
220
- eprintln ! (
221
- "Ignoring event with unknown event kind `{}`" ,
222
- unknown_event_kind
223
- ) ;
218
+ _ => {
219
+ // Data sources other than rustc will use their own event kinds so just
220
+ // treat this like a GENERIC_ACTIVITY except that we don't track cache
221
+ // misses since those may not apply to all data sources.
222
+ record_event_data ( & current_event. label , & |data| {
223
+ data. self_time += current_event_duration;
224
+ data. time += current_event_duration;
225
+ data. invocation_count += 1 ;
226
+ } ) ;
224
227
}
225
228
} ;
226
229
You can’t perform that action at this time.
0 commit comments