Skip to content

Commit ab5af05

Browse files
committed
fixup: add timestamp to filename
1 parent 3285d5a commit ab5af05

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

crates/runner-shared/src/unwind_data.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ impl UnwindData {
2121

2222
pub fn save_to<P: AsRef<std::path::Path>>(&self, folder: P, pid: i32) -> anyhow::Result<()> {
2323
let unwind_data_path = folder.as_ref().join(format!(
24-
"{}_{:x}_{:x}.{UNWIND_FILE_EXT}",
25-
pid, self.avma_range.start, self.avma_range.end
24+
"{}_{:x}_{:x}_{}.{UNWIND_FILE_EXT}",
25+
pid,
26+
self.avma_range.start,
27+
self.avma_range.end,
28+
self.timestamp.unwrap_or_default()
2629
));
2730
self.to_file(unwind_data_path)?;
2831

0 commit comments

Comments
 (0)