Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a072ecb
Don't build remote-test-server with the stage0 toolchain
Jan 20, 2021
b5482a8
Preserve existing LD_LIBRARY_PATH in remote-test-server
Jan 20, 2021
a2f5c72
Fix has_body for trait methods
CraftSpider Jan 24, 2021
1c60d27
Remove leading newline
CraftSpider Jan 24, 2021
3106de5
Remove struct_type from union output and bump format
CraftSpider Jan 24, 2021
c34faad
rustdoc: Move `display_fn` struct inside `display_fn`
camelid Jan 29, 2021
5882cce
Expose correct symlink API on WASI
RReverser Jan 30, 2021
6e6608d
Add additional benchmarks to bit_set
JulianKnodt Feb 2, 2021
1578f2e
Keep old symlink; expose new symlink_path
RReverser Feb 3, 2021
f4b1bef
Restore comment as it was
RReverser Feb 3, 2021
82914a5
Add more information to the error code for 'crate not found'
jyn514 Feb 2, 2021
3b5d018
Handle `Span`s for byte and raw strings and add more detail
estebank Jan 23, 2021
50e394a
relax adt unsizing requirements
lcnr Jan 5, 2021
031cce8
add `relaxed_struct_unsize` feature gate
lcnr Feb 3, 2021
d06384a
make Allocator object-safe
RustyYato Feb 3, 2021
fdaf603
add generic args to hir::TypeBinding
b-naber Nov 30, 2020
16af7bf
hir pretty printing
b-naber Nov 30, 2020
760a665
lowering of generic args in AssocTyConstraint
b-naber Nov 30, 2020
da2cf9b
substitutions in trait predicates
b-naber Nov 30, 2020
6a68966
use generic arguments of associated item in trait_ref method
b-naber Nov 30, 2020
9e92015
remove subst_supertrait call
b-naber Nov 30, 2020
b080d1c
Cleanup rustdoc pass descriptions a bit
camelid Feb 4, 2021
12d411f
add tests
b-naber Nov 30, 2020
0c3a7d8
Update LayoutError/LayoutErr stability attributes
Feb 5, 2021
4253919
Indicate change in RSS from start to end of pass in time-passes output
tgnottingham Feb 5, 2021
573f1c0
Fix `install-awscli.sh` error in CI.
m-ou-se Feb 5, 2021
deec6a9
Rollup merge of #79554 - b-naber:generic-associated-types-in-trait-pa…
m-ou-se Feb 5, 2021
676ff77
Rollup merge of #80726 - lcnr:unsize-query, r=oli-obk
m-ou-se Feb 5, 2021
8d49ca1
Rollup merge of #81307 - estebank:invalid-byte-str-span, r=petrochenkov
m-ou-se Feb 5, 2021
0493e3a
Rollup merge of #81318 - CraftSpider:json-trait-fix, r=jyn514
m-ou-se Feb 5, 2021
b5438e2
Rollup merge of #81456 - Amanieu:remote-test-server, r=Amanieu
m-ou-se Feb 5, 2021
2451bf9
Rollup merge of #81497 - camelid:rustdoc-display_fn-remove-cell, r=jy…
m-ou-se Feb 5, 2021
e98e42b
Rollup merge of #81500 - CraftSpider:union-kind, r=jyn514
m-ou-se Feb 5, 2021
ce1020f
Rollup merge of #81542 - RReverser:wasi-symlink, r=alexcrichton
m-ou-se Feb 5, 2021
29371c2
Rollup merge of #81676 - jyn514:crate-not-found, r=oli-obk
m-ou-se Feb 5, 2021
21c276f
Rollup merge of #81682 - JulianKnodt:bit_set_iter_benchmarks, r=oli-obk
m-ou-se Feb 5, 2021
ff3c85f
Rollup merge of #81730 - RustyYato:object-safe-allocator, r=Amanieu
m-ou-se Feb 5, 2021
469d535
Rollup merge of #81763 - camelid:rustdoc-passes-desc-up, r=GuillaumeG…
m-ou-se Feb 5, 2021
e077dff
Rollup merge of #81767 - exrook:layout-error-stability, r=Mark-Simula…
m-ou-se Feb 5, 2021
08d8fc1
Rollup merge of #81771 - tgnottingham:time-passes-rss-delta, r=oli-obk
m-ou-se Feb 5, 2021
2383cd4
Rollup merge of #81781 - m-ou-se:fix-ci, r=pietroalbini
m-ou-se Feb 5, 2021
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
25 changes: 11 additions & 14 deletions compiler/rustc_data_structures/src/profiling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,24 +590,21 @@ pub fn print_time_passes_entry(
end_rss: Option<usize>,
) {
let rss_to_mb = |rss| (rss as f64 / 1_000_000.0).round() as usize;
let rss_change_to_mb = |rss| (rss as f64 / 1_000_000.0).round() as i128;

let mem_string = match (start_rss, end_rss) {
(Some(start_rss), Some(end_rss)) => {
// It's tempting to add the change in RSS from start to end, but its somewhat confusing
// and misleading when looking at time-passes output. Consider two adjacent entries:
//
// time: 10.000; rss start: 1000MB, end: 1000MB, change: 0MB pass1
// time: 5.000; rss start: 2000MB, end: 2000MB, change: 0MB pass2
//
// If you're looking for jumps in RSS based on the change column, you miss the fact
// that a 1GB jump happened between pass1 and pass2 (supposing pass1 and pass2 actually
// occur sequentially and pass1 isn't just nested within pass2). It's easy to imagine
// someone missing this or being confused by the fact that the change is zero.

format!("; rss: {:>5}MB -> {:>5}MB", rss_to_mb(start_rss), rss_to_mb(end_rss))
let change_rss = end_rss as i128 - start_rss as i128;

format!(
"; rss: {:>4}MB -> {:>4}MB ({:>+5}MB)",
rss_to_mb(start_rss),
rss_to_mb(end_rss),
rss_change_to_mb(change_rss),
)
}
(Some(start_rss), None) => format!("; rss start: {:>5}MB", rss_to_mb(start_rss)),
(None, Some(end_rss)) => format!("; rss end: {:5>}MB", rss_to_mb(end_rss)),
(Some(start_rss), None) => format!("; rss start: {:>4}MB", rss_to_mb(start_rss)),
(None, Some(end_rss)) => format!("; rss end: {:>4}MB", rss_to_mb(end_rss)),
(None, None) => String::new(),
};

Expand Down