Skip to content

Commit 75eb821

Browse files
authored
Merge pull request #713 from nnethercote/fix-repeated-summarizing
Fix repeated summarizing.
2 parents e67ef0c + de2ec55 commit 75eb821

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

collector/src/execute.rs

-2
Original file line numberDiff line numberDiff line change
@@ -687,14 +687,12 @@ impl<'a> Processor for ProfileProcessor<'a> {
687687
let mut flamegraph_cmd = Command::new("flamegraph");
688688
flamegraph_cmd.arg(&zsp_files_prefix);
689689
flamegraph_cmd.status()?;
690-
fs::write(&summarize_file, &output.stdout)?;
691690
fs::rename("rustc.svg", flamegraph_file)?;
692691

693692
// Run `crox`.
694693
let mut crox_cmd = Command::new("crox");
695694
crox_cmd.arg(&zsp_files_prefix);
696695
crox_cmd.status()?;
697-
fs::write(&summarize_file, &output.stdout)?;
698696
fs::rename("chrome_profiler.json", crox_file)?;
699697
}
700698

collector/src/main.rs

+16-7
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,12 @@ fn main_result() -> anyhow::Result<i32> {
427427
'Doc', 'Opt', 'All'")
428428
(@arg CARGO: --cargo +takes_value "The path to the local Cargo to use")
429429
(@arg DB: --db +takes_value "Database output file")
430-
(@arg EXCLUDE: --exclude +takes_value "Exclude benchmarks matching these")
431-
(@arg INCLUDE: --include +takes_value "Include benchmarks matching these")
430+
(@arg EXCLUDE: --exclude +takes_value
431+
"Exclude all benchmarks matching anything in\n\
432+
this comma-separated list of patterns")
433+
(@arg INCLUDE: --include +takes_value
434+
"Include only benchmarks matching something in\n\
435+
this comma-separated list of patterns")
432436
(@arg RUNS: --runs +takes_value
433437
"One or more (comma-separated) of: 'Full',\n\
434438
'IncrFull', 'IncrUnchanged', 'IncrPatched', 'All'")
@@ -463,17 +467,22 @@ fn main_result() -> anyhow::Result<i32> {
463467
// Mandatory arguments
464468
(@arg PROFILER: +required +takes_value
465469
"One of: 'self-profile', 'time-passes', 'perf-record',\n\
466-
'cachegrind', 'callgrind', ''dhat', 'massif', 'eprintln'")
470+
'oprofile', 'cachegrind', 'callgrind', 'dhat', 'massif',\n\
471+
'eprintln', 'llvm-lines'")
467472
(@arg RUSTC: +required +takes_value "The path to the local rustc to benchmark")
468473
(@arg ID: +required +takes_value "Identifier to associate benchmark results with")
469474

470475
// Options
471476
(@arg BUILDS: --builds +takes_value
472-
"One or more (comma-separated) of: 'Check', 'Debug',\n\
473-
'Doc', 'Opt', 'All'")
477+
"One or more (comma-separated) of: 'Check', \n\
478+
'Debug', 'Doc', 'Opt', 'All'")
474479
(@arg CARGO: --cargo +takes_value "The path to the local Cargo to use")
475-
(@arg EXCLUDE: --exclude +takes_value "Exclude benchmarks matching these")
476-
(@arg INCLUDE: --include +takes_value "Include benchmarks matching these")
480+
(@arg EXCLUDE: --exclude +takes_value
481+
"Exclude all benchmarks matching anything in\n\
482+
this comma-separated list of patterns")
483+
(@arg INCLUDE: --include +takes_value
484+
"Include only benchmarks matching something in\n\
485+
this comma-separated list of patterns")
477486
(@arg OUT_DIR: --("out-dir") +takes_value "Output directory")
478487
(@arg RUNS: --runs +takes_value
479488
"One or more (comma-separated) of: 'Full',\n\

0 commit comments

Comments
 (0)