Skip to content

Commit 4fa8ee6

Browse files
committed
Fix self-profiler for unified file format
1 parent 55b5201 commit 4fa8ee6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

collector/src/execute.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,11 +880,13 @@ impl<'a> Processor for ProfileProcessor<'a> {
880880
rename(path, filepath(&zsp_dir, "Zsp.string_data"))?;
881881
} else if filename_str.ends_with(".string_index") {
882882
rename(path, filepath(&zsp_dir, "Zsp.string_index"))?;
883+
} else if filename_str.ends_with(".mm_profdata") {
884+
rename(path, filepath(&zsp_dir, "Zsp.mm_profdata"))?;
883885
} else {
884886
panic!("unexpected file {:?}", path);
885887
}
886888
}
887-
assert_eq!(num_files, 3);
889+
assert!(num_files == 3 || num_files == 1);
888890

889891
// Run `summarize`.
890892
let mut summarize_cmd = Command::new("summarize");

0 commit comments

Comments
 (0)