We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06c5fa9 commit 87473daCopy full SHA for 87473da
1 file changed
src/executor/helpers/harvest_perf_maps_for_pids.rs
@@ -1,7 +1,7 @@
1
use crate::prelude::*;
2
use std::collections::HashSet;
3
-use std::fs;
4
use std::path::{Path, PathBuf};
+use tokio::fs;
5
6
pub async fn harvest_perf_maps_for_pids(
7
profile_folder: &Path,
@@ -21,7 +21,7 @@ pub async fn harvest_perf_maps_for_pids(
21
debug!("Found {} perf maps", perf_maps.len());
22
23
for (src_path, dst_path) in perf_maps {
24
- fs::copy(&src_path, &dst_path).map_err(|e| {
+ fs::copy(&src_path, &dst_path).await.map_err(|e| {
25
anyhow!(
26
"Failed to copy perf map file: {:?} to {}: {}",
27
src_path.file_name(),
0 commit comments