Skip to content

Commit

Permalink
Print the ETL filenames when xperf fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstange committed Dec 6, 2024
1 parent 4436ad4 commit 0d9e307
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion samply/src/windows/elevated_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ impl UtilityProcessParent for ElevatedHelperParent {

let exit_status = cmd.status().expect("Failed to execute elevated helper");
if !exit_status.success() {
eprintln!("Failed to run elevated helper, exit status {}", exit_status.code().unwrap());
eprintln!(
"Failed to run elevated helper, exit status {}",
exit_status.code().unwrap()
);
use crate::name::SAMPLY_NAME_PRINT_STRING;
eprintln!("{SAMPLY_NAME_PRINT_STRING} requires Administrator privileges for profiling on Windows.");
std::process::exit(1);
Expand Down
2 changes: 2 additions & 0 deletions samply/src/windows/etw_gecko.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub fn process_etl_files(
&mut core_clr_context,
);
if result.is_err() {
dbg!(etl_file);
dbg!(&result);
std::process::exit(1);
}
Expand All @@ -47,6 +48,7 @@ pub fn process_etl_files(
&mut core_clr_context,
);
if result.is_err() {
dbg!(extra_etl_file);
dbg!(&result);
std::process::exit(1);
}
Expand Down

0 comments on commit 0d9e307

Please sign in to comment.