Skip to content

Commit

Permalink
Merge pull request #1151 from Mark-Simulacrum/fix-self-profile
Browse files Browse the repository at this point in the history
Fix self-profile collection
  • Loading branch information
Mark-Simulacrum authored Jan 18, 2022
2 parents d676bcf + dd3d6b5 commit 6d95a0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions collector/src/rustc-fake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn main() {
.args(&args);

let prof_out_dir = std::env::current_dir().unwrap().join("self-profile-output");
if wrapper == "perf-stat-self-profile" {
if wrapper == "PerfStatSelfProfile" {
cmd.arg(&format!(
"-Zself-profile={}",
prof_out_dir.to_str().unwrap()
Expand All @@ -99,7 +99,7 @@ fn main() {
assert!(status.success());
print_memory();
print_time(dur);
if wrapper == "perf-stat-self-profile" {
if wrapper == "PerfStatSelfProfile" {
process_self_profile_output(prof_out_dir, &args[..]);
}
}
Expand Down Expand Up @@ -151,7 +151,7 @@ fn main() {
tool.args(&args);

let prof_out_dir = std::env::current_dir().unwrap().join("self-profile-output");
if wrapper == "xperf-stat-self-profile" {
if wrapper == "XperfStatSelfProfile" {
tool.arg(&format!(
"-Zself-profile={}",
prof_out_dir.to_str().unwrap()
Expand Down Expand Up @@ -182,7 +182,7 @@ fn main() {
let counters_file = std::env::current_dir().unwrap().join("pmc_counters.txt");
println!("!counters-file:{}", counters_file.to_str().unwrap());

if wrapper == "xperf-stat-self-profile" {
if wrapper == "XperfStatSelfProfile" {
process_self_profile_output(prof_out_dir, &args[..]);
}
}
Expand Down

0 comments on commit 6d95a0f

Please sign in to comment.