-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement an
twiggy monos
for finding monomorphization bloat
Fixes #6
- Loading branch information
Showing
14 changed files
with
420 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Apprx. Bloat Bytes β Apprx. Bloat % β Bytes β % β Monomorphizations | ||
βββββββββββββββββββββΌβββββββββββββββββΌββββββββΌββββββββΌβββββββββββββββββββββββββ | ||
14 β 3.01% β 21 β 4.52% β void generic | ||
β β 7 β 1.51% β void generic<Zero>() | ||
β β 7 β 1.51% β void generic<One>() | ||
β β 7 β 1.51% β void generic<Two>() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Apprx. Bloat Bytes β Apprx. Bloat % β Bytes β % β Monomorphizations | ||
βββββββββββββββββββββΌβββββββββββββββββΌββββββββΌββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
1977 β 3.40% β 3003 β 5.16% β alloc::slice::merge_sort | ||
β β 1026 β 1.76% β alloc::slice::merge_sort::hb3d195f9800bdad6 | ||
β β 1026 β 1.76% β alloc::slice::merge_sort::hfcf2318d7dc71d03 | ||
β β 951 β 1.63% β alloc::slice::merge_sort::hcfca67f5c75a52ef | ||
1302 β 2.24% β 3996 β 6.87% β <&'a T as core::fmt::Debug>::fmt | ||
β β 2694 β 4.63% β <&'a T as core::fmt::Debug>::fmt::h1c27955d8de3ff17 | ||
β β 568 β 0.98% β <&'a T as core::fmt::Debug>::fmt::hea6a77c4dcddb7ac | ||
β β 433 β 0.74% β <&'a T as core::fmt::Debug>::fmt::hfbacf6f5c9f53bb2 | ||
β β 301 β 0.52% β <&'a T as core::fmt::Debug>::fmt::h199e8e1c5752e6f1 | ||
973 β 1.67% β 1118 β 1.92% β core::result::unwrap_failed | ||
β β 145 β 0.25% β core::result::unwrap_failed::h9bd27c3a9ad7c001 | ||
β β 145 β 0.25% β core::result::unwrap_failed::h4cc73eb9bf19ce32 | ||
β β 145 β 0.25% β core::result::unwrap_failed::h137aa4f433aba1a9 | ||
β β 138 β 0.24% β core::result::unwrap_failed::ha3e58cfc7f422ab4 | ||
β β 138 β 0.24% β core::result::unwrap_failed::h9a7678774db14d67 | ||
β β 138 β 0.24% β core::result::unwrap_failed::hcb258ce32bda3d85 | ||
β β 138 β 0.24% β core::result::unwrap_failed::ha7651fcaac40f701 | ||
β β 131 β 0.23% β core::result::unwrap_failed::hcfddf900474e698a | ||
558 β 0.96% β 714 β 1.23% β <alloc::raw_vec::RawVec<T, A>>::double | ||
β β 156 β 0.27% β <alloc::raw_vec::RawVec<T, A>>::double::h28f86621ee2a10aa | ||
β β 156 β 0.27% β <alloc::raw_vec::RawVec<T, A>>::double::h956450b93bdc9e1e | ||
β β 156 β 0.27% β <alloc::raw_vec::RawVec<T, A>>::double::hcb2fb5861b96a3b0 | ||
β β 147 β 0.25% β <alloc::raw_vec::RawVec<T, A>>::double::ha715b4e5cc3c60ae | ||
β β 99 β 0.17% β <alloc::raw_vec::RawVec<T, A>>::double::h77ff8547127c5db2 | ||
512 β 0.88% β 798 β 1.37% β std::thread::local::os::destroy_value | ||
β β 286 β 0.49% β std::thread::local::os::destroy_value::hca8124786bee4a79 | ||
β β 281 β 0.48% β std::thread::local::os::destroy_value::h094cf4f2a025ba2b | ||
β β 231 β 0.40% β std::thread::local::os::destroy_value::h453d41f6c315da32 | ||
234 β 0.40% β 354 β 0.61% β alloc::slice::insert_head | ||
β β 120 β 0.21% β alloc::slice::insert_head::haf6e08236bab8bde | ||
β β 120 β 0.21% β alloc::slice::insert_head::h2cdb84a455761146 | ||
β β 114 β 0.20% β alloc::slice::insert_head::hed0e79da03eeec8b | ||
196 β 0.34% β 294 β 0.51% β <core::fmt::Write::write_fmt::Adapter<'a, T> as core::fmt::Write>::write_fmt | ||
β β 98 β 0.17% β <core::fmt::Write::write_fmt::Adapter<'a, T> as core::fmt::Write>::write_fmt::h1b74a5fafe15c8eb | ||
β β 98 β 0.17% β <core::fmt::Write::write_fmt::Adapter<'a, T> as core::fmt::Write>::write_fmt::h24034d1c07bfae93 | ||
β β 98 β 0.17% β <core::fmt::Write::write_fmt::Adapter<'a, T> as core::fmt::Write>::write_fmt::h5ebed3e159974658 | ||
195 β 0.34% β 270 β 0.46% β <alloc::vec::Vec<T>>::push | ||
β β 75 β 0.13% β <alloc::vec::Vec<T>>::push::h98b02eda22d1ca25 | ||
β β 66 β 0.11% β <alloc::vec::Vec<T>>::push::hc927b4bedb35b00d | ||
β β 66 β 0.11% β <alloc::vec::Vec<T>>::push::h5729b9e7651ef67b | ||
β β 63 β 0.11% β <alloc::vec::Vec<T>>::push::h9415ef699ccc65d8 | ||
119 β 0.20% β 180 β 0.31% β <core::ops::range::Range<usize> as core::slice::SliceIndex<[T]>>::index_mut | ||
β β 61 β 0.10% β <core::ops::range::Range<usize> as core::slice::SliceIndex<[T]>>::index_mut::hba42cce6d0c0099b | ||
β β 61 β 0.10% β <core::ops::range::Range<usize> as core::slice::SliceIndex<[T]>>::index_mut::hbf8fcfe76c1f6657 | ||
β β 58 β 0.10% β <core::ops::range::Range<usize> as core::slice::SliceIndex<[T]>>::index_mut::h1c053f01b6f95d93 | ||
95 β 0.16% β 190 β 0.33% β core::fmt::Write::write_fmt | ||
β β 95 β 0.16% β core::fmt::Write::write_fmt::ha5ae3249cacba520 | ||
β β 95 β 0.16% β core::fmt::Write::write_fmt::hef4632e1398f5ac8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"generic":"alloc::slice::merge_sort","approximate_monomorphization_bloat_bytes":1977,"approximate_monomorphization_bloat_percent":3.396673768125902,"total_size":3003,"total_size_percent":5.159439213799739,"monomorphizations":[{"name":"alloc::slice::merge_sort::hb3d195f9800bdad6","shallow_size":1026,"shallow_size_percent":1.7627654456738369}]},{"generic":"<&'a T as core::fmt::Debug>::fmt","approximate_monomorphization_bloat_bytes":1302,"approximate_monomorphization_bloat_percent":2.2369596591299565,"total_size":3996,"total_size_percent":6.865507525255995,"monomorphizations":[{"name":"<&'a T as core::fmt::Debug>::fmt::h1c27955d8de3ff17","shallow_size":2694,"shallow_size_percent":4.6285478661260395}]}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Apprx. Bloat Bytes β Apprx. Bloat % β Bytes β % β Monomorphizations | ||
βββββββββββββββββββββΌβββββββββββββββββΌββββββββΌββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
1977 β 3.40% β 3003 β 5.16% β alloc::slice::merge_sort | ||
β β 1026 β 1.76% β alloc::slice::merge_sort::hb3d195f9800bdad6 | ||
1302 β 2.24% β 3996 β 6.87% β <&'a T as core::fmt::Debug>::fmt | ||
β β 2694 β 4.63% β <&'a T as core::fmt::Debug>::fmt::h1c27955d8de3ff17 |
Oops, something went wrong.