Skip to content

Fix repeated summarizing. #713

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

Merged
merged 2 commits into from
Jul 24, 2020
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: 0 additions & 2 deletions collector/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,14 +687,12 @@ impl<'a> Processor for ProfileProcessor<'a> {
let mut flamegraph_cmd = Command::new("flamegraph");
flamegraph_cmd.arg(&zsp_files_prefix);
flamegraph_cmd.status()?;
fs::write(&summarize_file, &output.stdout)?;
fs::rename("rustc.svg", flamegraph_file)?;

// Run `crox`.
let mut crox_cmd = Command::new("crox");
crox_cmd.arg(&zsp_files_prefix);
crox_cmd.status()?;
fs::write(&summarize_file, &output.stdout)?;
fs::rename("chrome_profiler.json", crox_file)?;
}

Expand Down
23 changes: 16 additions & 7 deletions collector/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,12 @@ fn main_result() -> anyhow::Result<i32> {
'Doc', 'Opt', 'All'")
(@arg CARGO: --cargo +takes_value "The path to the local Cargo to use")
(@arg DB: --db +takes_value "Database output file")
(@arg EXCLUDE: --exclude +takes_value "Exclude benchmarks matching these")
(@arg INCLUDE: --include +takes_value "Include benchmarks matching these")
(@arg EXCLUDE: --exclude +takes_value
"Exclude all benchmarks matching anything in\n\
this comma-separated list of patterns")
(@arg INCLUDE: --include +takes_value
"Include only benchmarks matching something in\n\
this comma-separated list of patterns")
(@arg RUNS: --runs +takes_value
"One or more (comma-separated) of: 'Full',\n\
'IncrFull', 'IncrUnchanged', 'IncrPatched', 'All'")
Expand Down Expand Up @@ -463,17 +467,22 @@ fn main_result() -> anyhow::Result<i32> {
// Mandatory arguments
(@arg PROFILER: +required +takes_value
"One of: 'self-profile', 'time-passes', 'perf-record',\n\
'cachegrind', 'callgrind', ''dhat', 'massif', 'eprintln'")
'oprofile', 'cachegrind', 'callgrind', 'dhat', 'massif',\n\
'eprintln', 'llvm-lines'")
(@arg RUSTC: +required +takes_value "The path to the local rustc to benchmark")
(@arg ID: +required +takes_value "Identifier to associate benchmark results with")

// Options
(@arg BUILDS: --builds +takes_value
"One or more (comma-separated) of: 'Check', 'Debug',\n\
'Doc', 'Opt', 'All'")
"One or more (comma-separated) of: 'Check', \n\
'Debug', 'Doc', 'Opt', 'All'")
(@arg CARGO: --cargo +takes_value "The path to the local Cargo to use")
(@arg EXCLUDE: --exclude +takes_value "Exclude benchmarks matching these")
(@arg INCLUDE: --include +takes_value "Include benchmarks matching these")
(@arg EXCLUDE: --exclude +takes_value
"Exclude all benchmarks matching anything in\n\
this comma-separated list of patterns")
(@arg INCLUDE: --include +takes_value
"Include only benchmarks matching something in\n\
this comma-separated list of patterns")
(@arg OUT_DIR: --("out-dir") +takes_value "Output directory")
(@arg RUNS: --runs +takes_value
"One or more (comma-separated) of: 'Full',\n\
Expand Down