Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created March 28, 2018 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikomatsakis/0b7b9eaa33820e5dec793a8b093f7b7c to your computer and use it in GitHub Desktop.
Save nikomatsakis/0b7b9eaa33820e5dec793a8b093f7b7c to your computer and use it in GitHub Desktop.
lunch-box. perf record -g -F99 rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta
error: extern location for ansi_term does not exist: /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta
error[E0463]: can't find crate for `ansi_term`
--> src/lib.rs:533:1
|
533 | extern crate ansi_term;
| ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0463`.
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.027 MB perf.data (29 samples) ]
lunch-box. CARGO_INCREMENTAL=0 cargo +rust8-stage2 check -v
Compiling libc v0.2.36
Compiling unicode-width v0.1.4
Compiling strsim v0.6.0
Compiling vec_map v0.8.0
Compiling ansi_term v0.10.2
Compiling bitflags v1.0.1
Running `rustc --crate-name libc /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.36/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=27c1b6d593d02dc5 -C extra-filename=-27c1b6d593d02dc5 --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --cap-lints allow`
Running `rustc --crate-name unicode_width /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-width-0.1.4/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="default"' -C metadata=92d73134b87da7cc -C extra-filename=-92d73134b87da7cc --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --cap-lints allow`
Running `rustc --crate-name strsim /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/strsim-0.6.0/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 -C metadata=61acaf2d398b2611 -C extra-filename=-61acaf2d398b2611 --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --cap-lints allow`
Running `rustc --crate-name vec_map /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/vec_map-0.8.0/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 -C metadata=f9826002b471fb03 -C extra-filename=-f9826002b471fb03 --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --cap-lints allow`
Running `rustc --crate-name bitflags /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="example_generated"' -C metadata=a639890d93be049d -C extra-filename=-a639890d93be049d --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --cap-lints allow`
Running `rustc --crate-name ansi_term /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.10.2/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 -C metadata=a109ebcdba54be2a -C extra-filename=-a109ebcdba54be2a --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --cap-lints allow`
Compiling textwrap v0.9.0
Running `rustc --crate-name textwrap /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/textwrap-0.9.0/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 -C metadata=83cc305af3637c59 -C extra-filename=-83cc305af3637c59 --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --cap-lints allow`
Compiling atty v0.2.6
Running `rustc --crate-name atty /home/nmatsakis/.cargo/registry/src/github.com-1ecc6299db9ec823/atty-0.2.6/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 -C metadata=6d0f34b7754fad63 -C extra-filename=-6d0f34b7754fad63 --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern libc=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/liblibc-27c1b6d593d02dc5.rmeta --cap-lints allow`
Compiling clap v2.29.0 (file:///home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs)
Running `rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta`
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/validator.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/args/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/zsh.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/shell.rs:2:5
|
2 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
C-c C-c
lunch-box. perf record -g -F99 rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/validator.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/args/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/zsh.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/shell.rs:2:5
|
2 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
error: unstable feature
--> src/lib.rs:519:12
|
519 | #![feature(nll)]
| ^^^
|
note: lint level defined here
--> src/lib.rs:523:70
|
523 | #![cfg_attr(not(any(feature = "lints", feature = "nightly")), forbid(unstable_features))]
| ^^^^^^^^^^^^^^^^^
error: aborting due to previous error
[ perf record: Woken up 9 times to write data ]
[ perf record: Captured and wrote 2.055 MB perf.data (6853 samples) ]
lunch-box. perf record -g -F99 rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta -Znll -Zborrowck=mir -Ztwo-phase-borrows
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/validator.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/args/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/zsh.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/shell.rs:2:5
|
2 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
[ perf record: Woken up 9 times to write data ]
[ perf record: Captured and wrote 2.058 MB perf.data (6850 samples) ]
lunch-box. rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta -Zborrowck=mir
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/validator.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/args/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/zsh.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/shell.rs:2:5
|
2 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
lunch-box. perf focus '{rustc_mir::borrow_check}'
Matcher : {rustc_mir::borrow_check}
Matches : 5967
Not Matches: 883
Percentage : 87
Time : 5.97s at 1000 Hz
lunch-box. perf focus '{rustc_mir::borrow_check}' --rustc-query --tree-callees
Matcher : {rustc_mir::borrow_check}
Matches : 0
Not Matches: 6850
Percentage : 0
Time : 0.00s at 1000 Hz
Tree
lunch-box. perf focus --rustc-query --tree-callees
Matcher : ()
Matches : 6850
Not Matches: 0
Percentage : 100
Time : 6.85s at 1000 Hz
Tree
| matched `()` (100% total, 0% self)
: | main() (100% total, 5% self)
: : | mir_borrowck<'tcx> (87% total, 86% self)
: : : | mir_borrowck<'tcx> (0% total, 0% self)
: : : : | mir_borrowck<'tcx> (0% total, 0% self)
: : : | normalize_projection_ty<'tcx> (0% total, 0% self)
: : : | is_sized_raw<'tcx> (0% total, 0% self)
: : | typeck_item_bodies<'tcx> (4% total, 0% self)
: : : | typeck_tables_of<'tcx> (4% total, 1% self)
: : : : | typeck_tables_of<'tcx> (3% total, 2% self)
: : : : : | impl_trait_ref<'tcx> (0% total, 0% self)
: : : : : | const_eval<'tcx> (0% total, 0% self)
: : : : : : | optimized_mir<'tcx> (0% total, 0% self)
: : : : : | generics_of<'tcx> (0% total, 0% self)
: : : : : | specializes<'tcx> (0% total, 0% self)
: : : : : : | param_env<'tcx> (0% total, 0% self)
: : : : : | dropck_outlives<'tcx> (0% total, 0% self)
: : : : : : | adt_dtorck_constraint<'tcx> (0% total, 0% self)
: : : : : : : | adt_dtorck_constraint<'tcx> (0% total, 0% self)
: : : : : : : : | adt_dtorck_constraint<'tcx> (0% total, 0% self)
: : : : : : : : : | adt_destructor<'tcx> (0% total, 0% self)
: : : : : : : : : : | associated_item_def_ids<'tcx> (0% total, 0% self)
: : : : : | type_of<'tcx> (0% total, 0% self)
: : : : | const_eval<'tcx> (0% total, 0% self)
: : : : | impl_trait_ref<'tcx> (0% total, 0% self)
: : : : | dropck_outlives<'tcx> (0% total, 0% self)
: : : : : | adt_dtorck_constraint<'tcx> (0% total, 0% self)
: : : : : : | adt_destructor<'tcx> (0% total, 0% self)
: : : : | trait_impls_of<'tcx> (0% total, 0% self)
: : : : : | type_of<'tcx> (0% total, 0% self)
: : : : | specializes<'tcx> (0% total, 0% self)
: : : : : | impl_polarity<'tcx> (0% total, 0% self)
: : | borrowck<'tcx> (1% total, 0% self)
: : : | mir_validated<'tcx> (0% total, 0% self)
: : : : | mir_const<'tcx> (0% total, 0% self)
: : : : : | unsafety_check_result<'tcx> (0% total, 0% self)
: : : : : : | mir_built<'tcx> (0% total, 0% self)
: : : : : : : | needs_drop_raw<'tcx> (0% total, 0% self)
: : : : : : : : | is_copy_raw<'tcx> (0% total, 0% self)
: : : : | is_freeze_raw<'tcx> (0% total, 0% self)
: : : : | mir_const_qualif<'tcx> (0% total, 0% self)
: : : : : | mir_const<'tcx> (0% total, 0% self)
: : : : : : | unsafety_check_result<'tcx> (0% total, 0% self)
: : : : : : : | mir_built<'tcx> (0% total, 0% self)
: : : : | needs_drop_raw<'tcx> (0% total, 0% self)
: : : : : | needs_drop_raw<'tcx> (0% total, 0% self)
: : : : : : | is_copy_raw<'tcx> (0% total, 0% self)
: : : : | item_attrs<'tcx> (0% total, 0% self)
: : : | borrowck<'tcx> (0% total, 0% self)
: : : : | borrowck<'tcx> (0% total, 0% self)
: : : : : | mir_validated<'tcx> (0% total, 0% self)
: : : : : : | is_freeze_raw<'tcx> (0% total, 0% self)
: : : : : | borrowck<'tcx> (0% total, 0% self)
: : : : : : | mir_validated<'tcx> (0% total, 0% self)
: : : : : : : | is_freeze_raw<'tcx> (0% total, 0% self)
: : : : | mir_validated<'tcx> (0% total, 0% self)
: : : : : | is_freeze_raw<'tcx> (0% total, 0% self)
: : | const_is_rvalue_promotable_to_static<'tcx> (0% total, 0% self)
: : : | rvalue_promotable_map<'tcx> (0% total, 0% self)
: : : : | rvalue_promotable_map<'tcx> (0% total, 0% self)
: : : : : | is_freeze_raw<'tcx> (0% total, 0% self)
: : : : : | is_copy_raw<'tcx> (0% total, 0% self)
: : : : | is_copy_raw<'tcx> (0% total, 0% self)
: : : : | is_freeze_raw<'tcx> (0% total, 0% self)
: : : : | needs_drop_raw<'tcx> (0% total, 0% self)
: : | optimized_mir<'tcx> (0% total, 0% self)
: : : | erase_regions_ty<'tcx> (0% total, 0% self)
: : : | mir_borrowck<'tcx> (0% total, 0% self)
: : : : | mir_validated<'tcx> (0% total, 0% self)
: : : : : | is_const_fn<'tcx> (0% total, 0% self)
: : | typeck_tables_of<'tcx> (0% total, 0% self)
: : : | typeck_tables_of<'tcx> (0% total, 0% self)
: : | check_impl_item_well_formed<'tcx> (0% total, 0% self)
: : : | region_scope_tree<'tcx> (0% total, 0% self)
: : : | param_env<'tcx> (0% total, 0% self)
: : : | is_object_safe<'tcx> (0% total, 0% self)
: : : : | associated_item<'tcx> (0% total, 0% self)
: : | coherent_trait<'tcx> (0% total, 0% self)
: : : | specialization_graph_of<'tcx> (0% total, 0% self)
: : : : | trait_impls_of<'tcx> (0% total, 0% self)
: : : : : | def_span<'tcx> (0% total, 0% self)
: : : : : | type_of<'tcx> (0% total, 0% self)
: : : : | impl_trait_ref<'tcx> (0% total, 0% self)
: : : : : | adt_def<'tcx> (0% total, 0% self)
: : : : : : | item_attrs<'tcx> (0% total, 0% self)
: : : : | impl_parent<'tcx> (0% total, 0% self)
: : | privacy_access_levels<'tcx> (0% total, 0% self)
: : | check_match<'tcx> (0% total, 0% self)
: : | visible_parent_map<'tcx> (0% total, 0% self)
: : : | item_children<'tcx> (0% total, 0% self)
: : : | def_span<'tcx> (0% total, 0% self)
: : | check_item_well_formed<'tcx> (0% total, 0% self)
: : : | is_object_safe<'tcx> (0% total, 0% self)
: : | lint_levels<'tcx> (0% total, 0% self)
: : | generics_of<'tcx> (0% total, 0% self)
: : : | object_lifetime_defaults_map<'tcx> (0% total, 0% self)
: : : : | resolve_lifetimes<'tcx> (0% total, 0% self)
: : | type_of<'tcx> (0% total, 0% self)
: : | check_trait_item_well_formed<'tcx> (0% total, 0% self)
: : | rvalue_promotable_map<'tcx> (0% total, 0% self)
: : : | rvalue_promotable_map<'tcx> (0% total, 0% self)
: : : : | is_freeze_raw<'tcx> (0% total, 0% self)
: : | mir_const<'tcx> (0% total, 0% self)
: : : | unsafety_check_result<'tcx> (0% total, 0% self)
: : : : | mir_built<'tcx> (0% total, 0% self)
: : : : : | needs_drop_raw<'tcx> (0% total, 0% self)
: : | mir_built<'tcx> (0% total, 0% self)
: : : | needs_drop_raw<'tcx> (0% total, 0% self)
: : : : | is_copy_raw<'tcx> (0% total, 0% self)
lunch-box. perf focus '{rustc_mir::borrow_check}' --hist-callees
Matcher : {rustc_mir::borrow_check}
Matches : 5967
Not Matches: 883
Percentage : 87
Time : 5.97s at 1000 Hz
Histogram
3% 0.26s rustc_mir::borrow_check::nll::type_check::type_check::_$u7b$$u7b$closure$u7d$$u7d$::h666dd146e41cc143
5% 0.40s <std::collections::hash::map::HashMap<K, V, S>>::try_resize
6% 0.41s <rustc_mir::dataflow::impls::borrows::Borrows<'a, 'gcx, 'tcx> as rustc_mir::dataflow::BitDenotation>::statement_effect
6% 0.42s <rustc_mir::dataflow::at_location::FlowAtLocation<BD> as rustc_mir::dataflow::at_location::FlowsAtLocation>::reconstruct_statement_effect
6% 0.47s rustc::infer::region_constraints::RegionConstraintCollector::take_and_reset_data
6% 0.47s rustc::infer::InferCtxt::take_and_reset_region_constraints
8% 0.56s rustc_mir::dataflow::do_dataflow
10% 0.70s rustc_mir::borrow_check::nll::type_check::type_check_internal
10% 0.70s rustc_mir::borrow_check::nll::type_check::type_check
11% 0.81s rustc_mir::borrow_check::nll::region_infer::values::RegionValues::contains
14% 1.02s rustc_mir::dataflow::impls::borrows::Borrows::kill_loans_out_of_scope_at_location
16% 1.14s <rustc_data_structures::bitvec::SparseBitMatrix<R, C>>::add
18% 1.25s rustc_mir::borrow_check::nll::region_infer::values::RegionValues::add_due_to_outlives
22% 1.55s <std::collections::hash::map::HashMap<K, V, S>>::insert
23% 1.62s alloc::btree::search::search_tree
58% 4.02s rustc_mir::borrow_check::nll::region_infer::RegionInferenceContext::compute_region_values
59% 4.08s rustc_mir::borrow_check::nll::region_infer::RegionInferenceContext::solve
70% 4.83s rustc_mir::borrow_check::nll::compute_regions
87% 5.96s rustc_mir::borrow_check::do_mir_borrowck
87% 5.97s <std::thread::local::LocalKey<T>>::with
87% 5.97s rustc::ty::context::GlobalCtxt::enter_local
87% 5.97s matched `{rustc_mir::borrow_check}`
lunch-box. perf focus '{rustc_mir::borrow_check}' --hist-callees -F99
Usage: perf-focus [options] [matcher]
Options:
--process-name <regex> filter samples by process name
--rustc-query convert from raw stacks to rustc query stacks
--print-match dump samples that match and show why they matched
--print-miss dump samples that do not match
--script-match dump samples that match in `perf script` format
--script-miss dump samples that do not match in `perf script` format
--relative make percentages relative to number of matches
--top-n <n> limit graph or histograms to the top <n> fns
--graph <file> dumps a callgraph of matching samples into <file>
--graph-callers <file> as above, but only dumps callers of the matcher
--graph-callees <file> as above, but only dumps callees of the matcher
--hist prints out the most common fns
--hist-callers prints out the most common fns amongst the callers
--hist-callees prints out the most common fns amongst the callees
--tree prints out a tree of the samples
--tree-callers prints out an (inverted) tree of the callers
--tree-callees prints out a tree of the callees
--tree-max-depth <n> limit tree to the outermost N functions
--tree-leaf only print nodes that have 'self hits'
--flat prints out a flat profile of which fns had most time
--min-percent <n> limit flat/tree to fns whose total time exceeds N%
--rename <match> <repl> post-process names for graphs/histograms;
see `replace_all` in Regex doc [1] for instructions.
May be specified more than once.
[1]: http://doc.rust-lang.org/regex/regex/index.html
--from-stdin read samples from stdin;
when not using this option,
we will execute `perf script`
-F, --frequency <n> frequency at which samples were recorded (-F in perf)
(default: 1000 Hz, like perf)
Error: unknown argument: -F99
lunch-box. perf focus '{rustc_mir::borrow_check}' --hist-callees -F 99
Matcher : {rustc_mir::borrow_check}
Matches : 5967
Not Matches: 883
Percentage : 87
Time : 60.27s at 99 Hz
Histogram
3% 2.60s rustc_mir::borrow_check::nll::type_check::type_check::_$u7b$$u7b$closure$u7d$$u7d$::h666dd146e41cc143
5% 4.06s <std::collections::hash::map::HashMap<K, V, S>>::try_resize
6% 4.17s <rustc_mir::dataflow::impls::borrows::Borrows<'a, 'gcx, 'tcx> as rustc_mir::dataflow::BitDenotation>::statement_effect
6% 4.21s <rustc_mir::dataflow::at_location::FlowAtLocation<BD> as rustc_mir::dataflow::at_location::FlowsAtLocation>::reconstruct_statement_effect
6% 4.71s rustc::infer::region_constraints::RegionConstraintCollector::take_and_reset_data
6% 4.76s rustc::infer::InferCtxt::take_and_reset_region_constraints
8% 5.61s rustc_mir::dataflow::do_dataflow
10% 7.03s rustc_mir::borrow_check::nll::type_check::type_check_internal
10% 7.04s rustc_mir::borrow_check::nll::type_check::type_check
11% 8.13s rustc_mir::borrow_check::nll::region_infer::values::RegionValues::contains
14% 10.30s rustc_mir::dataflow::impls::borrows::Borrows::kill_loans_out_of_scope_at_location
16% 11.52s <rustc_data_structures::bitvec::SparseBitMatrix<R, C>>::add
18% 12.62s rustc_mir::borrow_check::nll::region_infer::values::RegionValues::add_due_to_outlives
22% 15.63s <std::collections::hash::map::HashMap<K, V, S>>::insert
23% 16.38s alloc::btree::search::search_tree
58% 40.63s rustc_mir::borrow_check::nll::region_infer::RegionInferenceContext::compute_region_values
59% 41.21s rustc_mir::borrow_check::nll::region_infer::RegionInferenceContext::solve
70% 48.77s rustc_mir::borrow_check::nll::compute_regions
87% 60.25s rustc_mir::borrow_check::do_mir_borrowck
87% 60.26s <std::thread::local::LocalKey<T>>::with
87% 60.26s rustc::ty::context::GlobalCtxt::enter_local
87% 60.27s matched `{rustc_mir::borrow_check}`
lunch-box. perf focus '{rustc_mir::borrow_check::do_mir_borrowck}' --tree-callees -F 99 --min-percent 5
Matcher : {rustc_mir::borrow_check::do_mir_borrowck}
Matches : 5965
Not Matches: 885
Percentage : 87
Time : 60.25s at 99 Hz
Tree
| matched `{rustc_mir::borrow_check::do_mir_borrowck}` (87% total, 0% self)
: | rustc_mir::borrow_check::nll::compute_regions (70% total, 0% self)
: : | rustc_mir::borrow_check::nll::region_infer::RegionInferenceContext::solve (59% total, 0% self)
: : : | rustc_mir::borrow_check::nll::region_infer::RegionInferenceContext::compute_region_values (58% total, 8% self)
: : : : | <std::collections::hash::map::HashMap<K, V, S>>::insert (22% total, 16% self)
: : : : : | <std::collections::hash::map::HashMap<K, V, S>>::try_resize (5% total, 5% self)
: : : : | rustc_mir::borrow_check::nll::region_infer::values::RegionValues::add_due_to_outlives (17% total, 1% self)
: : : : : | <rustc_data_structures::bitvec::SparseBitMatrix<R, C>>::add (15% total, 6% self)
: : : : : : | alloc::btree::search::search_tree (7% total, 7% self)
: : : : | alloc::btree::search::search_tree (6% total, 6% self)
: : | rustc_mir::borrow_check::nll::type_check::type_check (10% total, 0% self)
: : : | rustc_mir::borrow_check::nll::type_check::type_check_internal (10% total, 0% self)
: | rustc_mir::dataflow::do_dataflow (8% total, 0% self)
: | <rustc_mir::dataflow::at_location::FlowAtLocation<BD> as rustc_mir::dataflow::at_location::FlowsAtLocation>::reconstruct_statement_effect (6% total, 0% self)
lunch-box. perf focus '{compute_region_values}' --tree-callees -F 99 --min-percent 5
Matcher : {compute_region_values}
Matches : 4022
Not Matches: 2828
Percentage : 58
Time : 40.63s at 99 Hz
Tree
| matched `{compute_region_values}` (58% total, 8% self)
: | <std::collections::hash::map::HashMap<K, V, S>>::insert (22% total, 16% self)
: : | <std::collections::hash::map::HashMap<K, V, S>>::try_resize (5% total, 5% self)
: | rustc_mir::borrow_check::nll::region_infer::values::RegionValues::add_due_to_outlives (17% total, 1% self)
: : | <rustc_data_structures::bitvec::SparseBitMatrix<R, C>>::add (15% total, 6% self)
: : : | alloc::btree::search::search_tree (7% total, 7% self)
: | alloc::btree::search::search_tree (6% total, 6% self)
lunch-box. perf focus '{region_infer::solve}' --tree-callees -F 99 --min-percent 5
Matcher : {region_infer::solve}
Matches : 0
Not Matches: 6850
Percentage : 0
Time : 0.00s at 99 Hz
Tree
lunch-box. perf focus '{solve}'
Matcher : {solve}
Matches : 4220
Not Matches: 2630
Percentage : 61
Time : 4.22s at 1000 Hz
lunch-box. pwd
/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs
lunch-box. rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta -Znll -Zborrowck=mir -Ztwo-phase-borrows -Ztime-passes >& killme
lunch-box. rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta -Znll -Zborrowck=mir -Ztwo-phase-borrows -Zdump-mir=add_defaults -Zhelp
Available debug options:
-Z codegen-backend=val -- the backend to use
-Z verbose -- in general, enable more debug printouts
-Z span-free-formats -- when debug-printing compiler state, do not include spans
-Z identify-regions -- make unnamed regions display as '# (where # is some non-ident unique id)
-Z emit-end-regions -- emit EndRegion as part of MIR; enable transforms that solely process EndRegion
-Z borrowck=val -- select which borrowck is used (`ast`, `mir`, or `compare`)
-Z two-phase-borrows -- use two-phase reserved/active distinction for `&mut` borrows in MIR borrowck
-Z two-phase-beyond-autoref -- when using two-phase-borrows, allow two phases even for non-autoref `&mut` borrows
-Z time-passes -- measure time of each rustc pass
-Z count-llvm-insns -- count where LLVM instrs originate
-Z time-llvm-passes -- measure time of each LLVM pass
-Z input-stats -- gather statistics about the input
-Z trans-stats -- gather trans statistics
-Z asm-comments -- generate comments into the assembly (may change behavior)
-Z no-verify -- skip LLVM verification
-Z borrowck-stats -- gather borrowck statistics
-Z no-landing-pads -- omit landing pads for unwinding
-Z fewer-names -- reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR)
-Z meta-stats -- gather metadata statistics
-Z print-link-args -- print the arguments passed to the linker
-Z print-llvm-passes -- prints the llvm optimization passes being run
-Z ast-json -- print the AST as JSON and halt
-Z query-threads=val -- execute queries on a thread pool with N threads
-Z ast-json-noexpand -- print the pre-expansion AST as JSON and halt
-Z ls -- list the symbols defined by a library crate
-Z save-analysis -- write syntax and type analysis (in JSON format) information, in addition to normal output
-Z flowgraph-print-loans -- include loan analysis data in -Z unpretty flowgraph output
-Z flowgraph-print-moves -- include move analysis data in -Z unpretty flowgraph output
-Z flowgraph-print-assigns -- include assignment analysis data in -Z unpretty flowgraph output
-Z flowgraph-print-all -- include all dataflow analysis data in -Z unpretty flowgraph output
-Z print-region-graph -- prints region inference graph. Use with RUST_REGION_GRAPH=help for more info
-Z parse-only -- parse only; do not compile, assemble, or link
-Z no-trans -- run all passes except translation; no output
-Z treat-err-as-bug -- treat all errors that occur as bugs
-Z external-macro-backtrace -- show macro backtraces even for non-local macros
-Z teach -- show extended diagnostic help
-Z continue-parse-after-error -- attempt to recover from parse errors (experimental)
-Z incremental=val -- enable incremental compilation (experimental)
-Z incremental-queries -- enable incremental compilation support for queries (experimental)
-Z incremental-info -- print high-level information about incremental reuse (or the lack thereof)
-Z incremental-dump-hash -- dump hash information in textual format to stdout
-Z incremental-verify-ich -- verify incr. comp. hashes of green query instances
-Z incremental-ignore-spans -- ignore spans during ICH computation -- used for testing
-Z dump-dep-graph -- dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv)
-Z query-dep-graph -- enable queries of the dependency graph for regression testing
-Z profile-queries -- trace and profile the queries of the incremental compilation framework
-Z profile-queries-and-keys -- trace and profile the queries and keys of the incremental compilation framework
-Z no-analysis -- parse and expand the source, but run no analysis
-Z extra-plugins=val -- load extra plugins
-Z unstable-options -- adds unstable command line options to rustc interface
-Z force-overflow-checks=val -- force overflow checks on or off
-Z trace-macros -- for every macro invocation, print its name and arguments
-Z debug-macros -- emit line numbers debug info inside macros
-Z enable-nonzeroing-move-hints -- force nonzeroing move optimization on
-Z keep-hygiene-data -- don't clear the hygiene data after analysis
-Z keep-ast -- keep the AST after lowering it to HIR
-Z show-span=val -- show spans for compiler debugging (expr|pat|ty)
-Z print-type-sizes -- print layout information for each type encountered
-Z print-trans-items=val -- print the result of the translation item collection pass
-Z mir-opt-level=val -- set the MIR optimization level (0-3, default: 1)
-Z mutable-noalias -- emit noalias metadata for mutable references
-Z arg-align-attributes -- emit align metadata for reference arguments
-Z dump-mir=val -- dump MIR state at various points in translation
-Z dump-mir-dir=val -- the directory the MIR is dumped into
-Z dump-mir-graphviz -- in addition to `.mir` files, create graphviz `.dot` files
-Z dump-mir-exclude-pass-number -- if set, exclude the pass number when dumping MIR (used in tests)
-Z mir-emit-validate=val -- emit Validate MIR statements, interpreted e.g. by miri (0: do not emit; 1: if function contains unsafe block, only validate arguments; 2: always emit full validation)
-Z perf-stats -- print some performance-related statistics
-Z hir-stats -- print some statistics about AST and HIR
-Z mir-stats -- print some statistics about MIR
-Z always-encode-mir -- encode MIR of all functions into the crate metadata
-Z miri -- check the miri const evaluator against the old ctfe
-Z osx-rpath-install-name -- pass `-install_name @rpath/...` to the macOS linker
-Z sanitizer=val -- Use a sanitizer
-Z linker-flavor=val -- Linker flavor
-Z fuel=val -- set the optimization fuel quota for a crate
-Z print-fuel=val -- make Rustc print the total optimization fuel used by a crate
-Z force-unstable-if-unmarked -- force all crates to be `rustc_private` unstable
-Z pre-link-arg=val -- a single extra argument to prepend the linker invocation (can be used several times)
-Z pre-link-args=val -- extra arguments to prepend to the linker invocation (space separated)
-Z profile -- insert profiling code
-Z pgo-gen=val -- Generate PGO profile data, to a given file, or to the default location if it's empty.
-Z pgo-use=val -- Use PGO profile data from the given profile file.
-Z disable-instrumentation-preinliner -- Disable the instrumentation pre-inliner, useful for profiling / PGO.
-Z relro-level=val -- choose which RELRO level to use
-Z nll -- run the non-lexical lifetimes MIR pass
-Z disable-nll-user-type-assert -- disable user provided type assertion in NLL
-Z trans-time-graph -- generate a graphical HTML report of time spent in trans and LLVM
-Z thinlto=val -- enable ThinLTO when possible
-Z inline-in-all-cgus=val -- control whether #[inline] functions are in all cgus
-Z tls-model=val -- choose the TLS model to use (rustc --print tls-models for details)
-Z saturating-float-casts -- make float->int casts UB-free: numbers outside the integer type's range are clipped to the max/min integer respectively, and NaN is mapped to 0
-Z lower-128bit-ops=val -- rewrite operators on i128 and u128 into lang item calls (typically provided by compiler-builtins) so translation doesn't need to support them,
overriding the default for the current target
-Z human-readable-cgu-names -- generate human-readable, predictable names for codegen units
-Z dep-info-omit-d-target -- in dep-info output, omit targets for tracking dependencies of the dep-info files themselves
-Z approximate-suggestions -- include machine-applicability of suggestions in JSON output
-Z unpretty=val -- Present the input source, unstable (and less-pretty) variants;
valid types are any of the types for `--pretty`, as well as:
`flowgraph=<nodeid>` (graphviz formatted flowgraph for node),
`everybody_loops` (all function bodies replaced with `loop {}`),
`hir` (the HIR), `hir,identified`, or
`hir,typed` (HIR with types for each node).
-Z edition=val -- The edition to build Rust with. Newer editions may include features
that require breaking changes. The default edition is 2015 (the first
edition). Crates compiled with different editions can be linked together.
-Z run-dsymutil=val -- run `dsymutil` and delete intermediate object files
-Z ui-testing -- format compiler diagnostics in a way that's better suitable for UI testing
-Z embed-bitcode -- embed LLVM bitcode in object files
-Z strip-debuginfo-if-disabled=val -- tell the linker to strip debuginfo when building without debuginfo enabled.
lunch-box. rustc --crate-name clap src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=d202d71b943170bd -C extra-filename=-d202d71b943170bd --out-dir /home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps -L dependency=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps --extern bitflags=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libbitflags-a639890d93be049d.rmeta --extern strsim=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libstrsim-61acaf2d398b2611.rmeta --extern unicode_width=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libunicode_width-92d73134b87da7cc.rmeta --extern atty=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libatty-6d0f34b7754fad63.rmeta --extern textwrap=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libtextwrap-83cc305af3637c59.rmeta --extern vec_map=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libvec_map-f9826002b471fb03.rmeta --extern ansi_term=/home/nmatsakis/versioned/rustc-perf/collector/benchmarks/clap-rs/target/debug/deps/libansi_term-a109ebcdba54be2a.rmeta -Znll -Zborrowck=mir -Ztwo-phase-borrows -Zdump-mir='add_defaults&nll'
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/app/validator.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/args/settings.rs:3:5
|
3 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/zsh.rs:4:5
|
4 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/completions/shell.rs:2:5
|
2 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
lunch-box. dot -Tsvg mir_dump/rustc.app-parser-{{impl}}-add_defaults.-------.nll.0.regioncx.dot > xxx.svg
C-c C-clunch-box.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment