Skip to content

Commit 4129817

Browse files
Prevent LC_MEASUREMENT from applying to perf
1 parent cdad88e commit 4129817

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

collector/src/rustc-fake.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ fn main() {
4444
let has_perf = cmd.output().is_ok();
4545
assert!(has_perf);
4646
cmd.arg("stat")
47+
// perf respects this environment variable for e.g., percents in
48+
// the output, but we want standard output on all systems.
49+
// See #753 for more details.
50+
.env("LC_MEASUREMENT", "C")
4751
.arg("-x;")
4852
.arg("-e")
4953
.arg("instructions:u,cycles:u,task-clock,cpu-clock,faults")

0 commit comments

Comments
 (0)