Skip to content

Instantly share code, notes, and snippets.

@therealprof
Created June 1, 2020 22:29
Show Gist options
  • Save therealprof/7f23c006757232fb90e58eadf6ab48ea to your computer and use it in GitHub Desktop.
Save therealprof/7f23c006757232fb90e58eadf6ab48ea to your computer and use it in GitHub Desktop.
File .text Size Crate Name
0.5% 17.6% 2.4KiB ssd1306_image ssd1306_image::__cortex_m_rt_main
0.2% 8.1% 1.1KiB std <char as core::fmt::Debug>::fmt
0.2% 5.7% 806B std core::str::slice_error_fail
0.2% 5.5% 770B std core::fmt::Formatter::pad
0.1% 4.4% 620B ssd1306 ssd1306::command::Command::send
0.1% 4.3% 606B std core::fmt::num::<impl core::fmt::Debug for usize>::fmt
0.1% 4.3% 602B std core::fmt::Formatter::pad_integral
0.1% 3.9% 554B std <core::fmt::builders::PadAdapter as core::fmt::Write>::write_str
0.1% 3.9% 548B ssd1306 ssd1306::mode::graphics::GraphicsMode<DI>::flush
0.1% 3.2% 454B std core::fmt::write
0.1% 2.8% 390B ssd1306 ssd1306::properties::DisplayProperties<DI>::bounded_draw
0.1% 2.6% 360B std core::fmt::builders::DebugStruct::field
0.1% 2.3% 318B embedded_graphics? <embedded_graphics::image::ImageIterator<I,C> as core::iter::traits::iterator::Iterator>::next
0.1% 2.0% 284B std <&T as core::fmt::Debug>::fmt
0.1% 1.8% 252B std core::fmt::num::imp::<impl core::fmt::Display for u32>::fmt
0.0% 1.7% 234B stm32f4xx_hal <&T as core::fmt::Debug>::fmt
0.0% 1.7% 232B panic_semihosting <&T as core::fmt::Display>::fmt
0.0% 1.6% 224B std core::fmt::builders::DebugTuple::field
0.0% 1.5% 212B std core::fmt::num::<impl core::fmt::LowerHex for i32>::fmt
0.0% 1.4% 194B ssd1306 ssd1306::properties::DisplayProperties<DI>::set_draw_area
0.0% 1.1% 160B std core::fmt::Write::write_char
0.0% 1.0% 146B stm32f4xx_hal core::slice::<impl [T]>::copy_from_slice
0.0% 1.0% 144B cortex_m_semihosting <&mut W as core::fmt::Write>::write_char
0.0% 1.0% 136B stm32f4xx_hal core::iter::traits::iterator::Iterator::fold::ok::{{closure}}
0.0% 0.9% 122B [Unknown] __aeabi_memcpy
0.0% 0.8% 116B cortex_m_rt Reset
0.0% 0.8% 114B ssd1306? <ssd1306::Error<CommE,PinE> as core::fmt::Debug>::fmt
0.0% 0.8% 112B panic_halt rust_begin_unwind
0.0% 0.8% 106B cortex_m_semihosting cortex_m_semihosting::hio::write_all
0.0% 0.7% 100B stm32f4xx_hal? <stm32f4xx_hal::i2c::I2c<I2C,PINS> as embedded_hal::blocking::i2c::Write>::write
0.0% 0.7% 98B ssd1306 ssd1306::properties::DisplayProperties<DI>::set_rotation
0.0% 0.7% 96B [Unknown] __aeabi_memset
0.0% 0.6% 90B std core::fmt::builders::DebugTuple::finish
0.0% 0.6% 82B std <core::ops::range::Range<Idx> as core::fmt::Debug>::fmt
0.0% 0.6% 78B std <T as core::convert::Into<U>>::into
0.0% 0.6% 78B std core::option::expect_none_failed
0.0% 0.5% 74B std <&T as core::fmt::Debug>::fmt
0.0% 0.5% 72B std core::slice::slice_index_order_fail
0.0% 0.5% 72B std core::slice::slice_index_len_fail
0.0% 0.5% 70B ssd1306_image ssd1306_image::__cortex_m_rt_HardFault
0.0% 0.5% 68B std core::fmt::Formatter::pad_integral::write_prefix
0.0% 0.5% 68B std core::panicking::panic_bounds_check
0.0% 0.5% 66B ssd1306 ssd1306::properties::DisplayProperties<DI>::get_dimensions
0.0% 0.3% 48B cortex_m_semihosting <&mut W as core::fmt::Write>::write_fmt
0.0% 0.3% 48B std <&mut W as core::fmt::Write>::write_fmt
0.0% 0.3% 48B std core::panicking::panic
0.0% 0.3% 46B std core::fmt::Write::write_fmt
0.0% 0.3% 44B std <&T as core::fmt::Display>::fmt
0.0% 0.3% 40B std <core::fmt::Arguments as core::fmt::Display>::fmt
0.0% 0.3% 38B std core::panicking::panic_fmt
0.0% 0.1% 18B std <T as core::any::Any>::type_id
0.0% 0.1% 16B std <&T as core::fmt::Debug>::fmt
0.0% 0.1% 14B std <&T as core::fmt::Display>::fmt
0.0% 0.1% 12B std <&T as core::fmt::Display>::fmt
0.0% 0.1% 10B [Unknown] HardFault
0.0% 0.1% 10B cortex_m_rt ResetTrampoline
0.0% 0.1% 10B std <&T as core::fmt::Debug>::fmt
0.0% 0.1% 10B [Unknown] main
0.0% 0.1% 8B cortex_m_semihosting <&mut W as core::fmt::Write>::write_str
0.0% 0.0% 6B [Unknown] __aeabi_memclr
0.0% 0.2% 32B And 11 smaller methods. Use -n N to show more.
2.8% 100.0% 13.7KiB .text section size, the file size is 491.1KiB
File .text Size Crate Name
0.4% 16.6% 2.1KiB ssd1306_image ssd1306_image::__cortex_m_rt_main
0.2% 8.7% 1.1KiB std <char as core::fmt::Debug>::fmt
0.1% 6.1% 806B std core::str::slice_error_fail
0.1% 5.9% 770B std core::fmt::Formatter::pad
0.1% 4.7% 620B ssd1306 ssd1306::command::Command::send
0.1% 4.6% 606B std core::fmt::num::<impl core::fmt::Debug for usize>::fmt
0.1% 4.6% 602B std core::fmt::Formatter::pad_integral
0.1% 4.2% 554B std <core::fmt::builders::PadAdapter as core::fmt::Write>::write_str
0.1% 3.5% 454B std core::fmt::write
0.1% 2.8% 366B ssd1306 ssd1306::properties::DisplayProperties<DI>::bounded_draw
0.1% 2.7% 360B std core::fmt::builders::DebugStruct::field
0.1% 2.2% 284B std <&T as core::fmt::Debug>::fmt
0.0% 1.9% 252B std core::fmt::num::imp::<impl core::fmt::Display for u32>::fmt
0.0% 1.9% 246B ssd1306 ssd1306::mode::graphics::GraphicsMode<DI>::flush
0.0% 1.8% 234B stm32f4xx_hal <&T as core::fmt::Debug>::fmt
0.0% 1.8% 232B panic_semihosting <&T as core::fmt::Display>::fmt
0.0% 1.7% 224B std core::fmt::builders::DebugTuple::field
0.0% 1.6% 212B std core::fmt::num::<impl core::fmt::LowerHex for i32>::fmt
0.0% 1.2% 160B std core::fmt::Write::write_char
0.0% 1.1% 146B stm32f4xx_hal core::slice::<impl [T]>::copy_from_slice
0.0% 1.1% 144B cortex_m_semihosting <&mut W as core::fmt::Write>::write_char
0.0% 1.0% 130B ssd1306 ssd1306::properties::DisplayProperties<DI>::set_draw_area
0.0% 0.9% 122B [Unknown] __aeabi_memcpy
0.0% 0.9% 118B embedded_graphics? <embedded_graphics::image::ImageIterator<I,C> as core::iter::traits::iterator::Iterator>::next
0.0% 0.9% 116B cortex_m_rt Reset
0.0% 0.9% 114B ssd1306? <ssd1306::Error<CommE,PinE> as core::fmt::Debug>::fmt
0.0% 0.9% 112B panic_halt rust_begin_unwind
0.0% 0.8% 100B stm32f4xx_hal? <stm32f4xx_hal::i2c::I2c<I2C,PINS> as embedded_hal::blocking::i2c::Write>::write
0.0% 0.7% 98B ssd1306 ssd1306::properties::DisplayProperties<DI>::set_rotation
0.0% 0.7% 96B [Unknown] __aeabi_memset
0.0% 0.7% 90B std core::fmt::builders::DebugTuple::finish
0.0% 0.6% 84B cortex_m_semihosting cortex_m_semihosting::hio::write_all
0.0% 0.6% 82B std <core::ops::range::Range<Idx> as core::fmt::Debug>::fmt
0.0% 0.6% 78B std <T as core::convert::Into<U>>::into
0.0% 0.6% 78B std core::option::expect_none_failed
0.0% 0.6% 74B stm32f4xx_hal core::iter::traits::iterator::Iterator::min_by_key::key::{{closure}}
0.0% 0.6% 74B std <&T as core::fmt::Debug>::fmt
0.0% 0.5% 72B std core::slice::slice_index_order_fail
0.0% 0.5% 72B std core::slice::slice_index_len_fail
0.0% 0.5% 70B ssd1306_image ssd1306_image::__cortex_m_rt_HardFault
0.0% 0.5% 68B std core::fmt::Formatter::pad_integral::write_prefix
0.0% 0.5% 68B std core::panicking::panic_bounds_check
0.0% 0.5% 66B ssd1306 ssd1306::properties::DisplayProperties<DI>::get_dimensions
0.0% 0.4% 54B embedded_graphics? <embedded_graphics::pixelcolor::raw::iter::RawDataIter<R,embedded_graphics::pixelcolor::raw::BigEndian> as core::iter::traits::iterator::Iterator>::next
0.0% 0.4% 48B cortex_m_semihosting <&mut W as core::fmt::Write>::write_fmt
0.0% 0.4% 48B std <&mut W as core::fmt::Write>::write_fmt
0.0% 0.4% 48B std core::panicking::panic
0.0% 0.3% 46B std core::fmt::Write::write_fmt
0.0% 0.3% 44B std <&T as core::fmt::Display>::fmt
0.0% 0.3% 40B std <core::fmt::Arguments as core::fmt::Display>::fmt
0.0% 0.3% 38B std core::panicking::panic_fmt
0.0% 0.1% 18B std <T as core::any::Any>::type_id
0.0% 0.1% 16B std <&T as core::fmt::Debug>::fmt
0.0% 0.1% 14B std <&T as core::fmt::Display>::fmt
0.0% 0.1% 12B std <&T as core::fmt::Display>::fmt
0.0% 0.1% 10B [Unknown] HardFault
0.0% 0.1% 10B cortex_m_rt ResetTrampoline
0.0% 0.1% 10B std <&T as core::fmt::Debug>::fmt
0.0% 0.1% 10B [Unknown] main
0.0% 0.1% 8B cortex_m_semihosting <&mut W as core::fmt::Write>::write_str
0.0% 0.3% 38B And 12 smaller methods. Use -n N to show more.
2.4% 100.0% 12.8KiB .text section size, the file size is 546.3KiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment