Skip to content

Commit

Permalink
missed changes: copy temp files instead of move, crate use formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lancelui-amzn authored and janaknat committed Aug 9, 2024
1 parent 57242bb commit 039d598
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/data/java_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl CollectData for JavaProfileRaw {
key
);

fs::rename(tmp_loc.clone(), html_loc).ok();
fs::copy(tmp_loc.clone(), html_loc).ok();
}

let mut jps_map = File::create(
Expand Down
10 changes: 6 additions & 4 deletions src/data/perf_stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ use std::sync::Mutex;
use crate::data::grv_perf_events;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
use {
crate::data::amd_genoa_perf_events::GENOA_CTRS, crate::data::amd_milan_perf_events::MILAN_CTRS,
crate::data::amd_perf_events, crate::data::intel_icelake_perf_events::ICX_CTRS,
crate::data::intel_perf_events, crate::data::intel_sapphire_rapids_perf_events::SPR_CTRS,
crate::data::utils::get_cpu_info, indexmap::IndexMap,
crate::data::{
amd_genoa_perf_events::GENOA_CTRS, amd_milan_perf_events::MILAN_CTRS, amd_perf_events,
intel_icelake_perf_events::ICX_CTRS, intel_perf_events,
intel_sapphire_rapids_perf_events::SPR_CTRS, utils::get_cpu_info,
},
indexmap::IndexMap,
};

pub static PERF_STAT_FILE_NAME: &str = "perf_stat";
Expand Down

0 comments on commit 039d598

Please sign in to comment.