@@ -197,6 +197,7 @@ fn parse_events(r: &mut dyn BufRead, headers: Vec<EventHeader>) -> anyhow::Resul
197
197
match columns[ 0 ] . trim ( ) {
198
198
PROCESS_START => {
199
199
let process_name = columns[ pstart_process_name] . trim ( ) ;
200
+ log:: trace!( "saw P-Start for {}" , process_name) ;
200
201
201
202
match ( process_name. contains ( "rustc.exe" ) , & rustc_process) {
202
203
( true , None ) =>{
@@ -239,6 +240,7 @@ fn parse_events(r: &mut dyn BufRead, headers: Vec<EventHeader>) -> anyhow::Resul
239
240
// because sometimes C-Switch events come in after the P-End event and we
240
241
// don't want to miss them. (If PID reuse occurs for a watched process, we
241
242
// detect this in PROCESS_START).
243
+ log:: trace!( "saw P-End for {}" , columns[ pend_process_name] . trim( ) ) ;
242
244
}
243
245
PMC => {
244
246
last_pmc = Some ( Pmc {
@@ -251,8 +253,11 @@ fn parse_events(r: &mut dyn BufRead, headers: Vec<EventHeader>) -> anyhow::Resul
251
253
CSWITCH => {
252
254
let timestamp = columns[ cswitch_timestamp] . trim ( ) . parse ( ) ?;
253
255
let old_process = columns[ cswitch_old_process] . trim ( ) ;
254
- let old_pid = extract_pid ( old_process) ;
255
256
let new_process = columns[ cswitch_new_process] . trim ( ) ;
257
+
258
+ log:: trace!( "saw CSwitch from {} to {}" , old_process, new_process) ;
259
+
260
+ let old_pid = extract_pid ( old_process) ;
256
261
let new_pid = extract_pid ( new_process) ;
257
262
258
263
if !currently_watched_processes. contains ( & old_pid) && !currently_watched_processes. contains ( & new_pid) {
0 commit comments