Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missed changes: copy temp files instead of move, crate use formatting #223

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading