Skip to content

Commit 87473da

Browse files
chore: use tokio::fs when harvesting perf maps from pids
1 parent 06c5fa9 commit 87473da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/executor/helpers/harvest_perf_maps_for_pids.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::prelude::*;
22
use std::collections::HashSet;
3-
use std::fs;
43
use std::path::{Path, PathBuf};
4+
use tokio::fs;
55

66
pub async fn harvest_perf_maps_for_pids(
77
profile_folder: &Path,
@@ -21,7 +21,7 @@ pub async fn harvest_perf_maps_for_pids(
2121
debug!("Found {} perf maps", perf_maps.len());
2222

2323
for (src_path, dst_path) in perf_maps {
24-
fs::copy(&src_path, &dst_path).map_err(|e| {
24+
fs::copy(&src_path, &dst_path).await.map_err(|e| {
2525
anyhow!(
2626
"Failed to copy perf map file: {:?} to {}: {}",
2727
src_path.file_name(),

0 commit comments

Comments
 (0)