Skip to content

Instantly share code, notes, and snippets.

@little-arhat
Created March 27, 2019 20:10
Show Gist options
  • Save little-arhat/9d43dc5b38e3894c34765fdebac59b20 to your computer and use it in GitHub Desktop.
Save little-arhat/9d43dc5b38e3894c34765fdebac59b20 to your computer and use it in GitHub Desktop.
x.tst
# without core::fmt
cargo -v bloat --crates
Compiling ...
Analyzing target/thumbv7em-none-eabihf/debug/fcfs-rtfm
File .text Size Name
0.6% 26.8% 14.3KiB std
0.4% 19.3% 10.3KiB alt_stm32f30x_hal
0.3% 15.4% 8.2KiB mpu9250
0.3% 13.5% 7.2KiB stm32f30x
0.2% 8.2% 4.3KiB nalgebra
0.1% 3.5% 1.8KiB cortex_m_semihosting
0.1% 3.3% 1.8KiB embedded_hal
0.1% 3.0% 1.6KiB cortex_m
0.0% 1.8% 982B fcfs_rtfm
0.0% 1.2% 652B [Unknown]
0.0% 1.1% 582B cortex_m_rt
0.0% 0.7% 404B num_traits
0.0% 0.6% 352B generic_array
0.0% 0.5% 256B typenum
0.0% 0.4% 194B rtfm
0.0% 0.2% 108B cast
0.0% 0.2% 98B rand_core
0.0% 0.2% 82B alga
0.0% 0.1% 54B bobbin_bits
0.0% 0.0% 12B panic_abort
2.2% 100.0% 53.2KiB .text section size, the file size is 2.3MiB
# with core::fmt
cargo -v bloat --crates
Compiling ...
Analyzing target/thumbv7em-none-eabihf/debug/fcfs-rtfm
File .text Size Name
1.4% 44.9% 35.0KiB std
0.4% 13.2% 10.3KiB alt_stm32f30x_hal
0.4% 11.5% 9.0KiB mpu9250
0.3% 9.2% 7.2KiB stm32f30x
0.2% 5.8% 4.5KiB nalgebra
0.1% 4.2% 3.2KiB cortex_m_semihosting
0.1% 2.5% 1.9KiB cortex_m
0.1% 2.4% 1.9KiB [Unknown]
0.1% 2.3% 1.8KiB embedded_hal
0.0% 1.4% 1.1KiB fcfs_rtfm
0.0% 0.7% 582B cortex_m_rt
0.0% 0.5% 404B num_traits
0.0% 0.5% 396B generic_array
0.0% 0.3% 256B typenum
0.0% 0.2% 194B rtfm
0.0% 0.1% 108B cast
0.0% 0.1% 98B rand_core
0.0% 0.1% 82B alga
0.0% 0.1% 54B bobbin_bits
0.0% 0.0% 12B panic_abort
3.2% 100.0% 78.0KiB .text section size, the file size is 2.4MiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment