Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewdavidmackenzie/c8a94b91d82dd978735945e54c6fe13a to your computer and use it in GitHub Desktop.
Save andrewdavidmackenzie/c8a94b91d82dd978735945e54c6fe13a to your computer and use it in GitHub Desktop.
cargo bloat --release --bin piggui -n 100
cargo bloat --release --bin piggui -n 100
warning: /Users/andrew/workspace/pigg/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
(in the `plotters` dependency)
Finished `release` profile [optimized] target(s) in 0.25s
Analyzing target/release/piggui
File .text Size Crate Name
0.4% 0.7% 40.1KiB zeno alloc::raw_vec::RawVecInner<A>::reserve::do_reserve_and_handle
0.3% 0.6% 34.7KiB rustls rustls::msgs::ffdhe_groups::FfdheGroup::named_group
0.3% 0.5% 28.4KiB piggui piggui::piggui_iroh_helper::connect::{{closure}}
0.3% 0.5% 27.0KiB skrifa skrifa::outline::glyf::hint::engine::dispatch::<impl skrifa::outline::glyf::hint::engine::Engine>::run
0.3% 0.5% 27.0KiB iced_winit iced_winit::program::run_instance::{{closure}}
0.3% 0.5% 26.8KiB iroh_net iroh_net::magicsock::Actor::run::{{closure}}
0.2% 0.4% 24.6KiB rustybuzz rustybuzz::hb::shape::shape_with_plan
0.2% 0.4% 23.4KiB std core::ops::function::FnOnce::call_once
0.2% 0.4% 22.4KiB iroh_net iroh_net::relay::client::Actor::connect_derp::{{closure}}
0.2% 0.4% 22.1KiB iroh_net iroh_net::netcheck::reportgen::Actor::run_inner::{{closure}}
0.2% 0.4% 22.1KiB tracing? <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.2% 0.4% 22.1KiB iroh_net <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.2% 0.4% 20.9KiB wgpu wgpu_core::command::render::<impl wgpu_core::global::Global<G>>::command_encoder_run_render_pass_impl
0.2% 0.3% 20.5KiB naga naga::valid::Validator::validate
0.2% 0.3% 18.6KiB naga naga::front::wgsl::lower::Lowerer::call
0.2% 0.3% 17.9KiB naga naga::back::msl::writer::Writer<W>::write_functions
0.2% 0.3% 17.7KiB futures_util? <futures_util::stream::once::Once<Fut> as futures_core::stream::Stream>::poll_next
0.2% 0.3% 17.6KiB iroh_net iroh_net::relay::client::Actor::connect_0::{{closure}}
0.2% 0.3% 17.5KiB ttf_parser ttf_parser::Face::parse
0.2% 0.3% 16.6KiB wgpu wgpu_core::device::resource::Device<A>::create_shader_module
0.2% 0.3% 16.3KiB tracing? <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.2% 0.3% 16.1KiB wgpu wgpu_core::device::queue::<impl wgpu_core::global::Global<G>>::queue_submit
0.1% 0.3% 15.6KiB iroh_net <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.1% 0.3% 15.4KiB iced_winit iced_winit::program::run
0.1% 0.3% 15.3KiB swash zeno::mask::Mask<D>::placement
0.1% 0.3% 15.2KiB iced_winit? <iced_winit::program::run::Runner<Message,F,C> as winit::application::ApplicationHandler<iced_runtime::Action<Message>>>::r...
0.1% 0.3% 14.9KiB xml xml::reader::parser::PullParser::dispatch_token
0.1% 0.3% 14.8KiB iroh_net iroh_net::netcheck::reportgen::run_probe::{{closure}}
0.1% 0.2% 14.6KiB clap_builder clap_builder::parser::parser::Parser::get_matches_with
0.1% 0.2% 14.5KiB iroh_net iroh_net::magicsock::relay_actor::RelayActor::connect_relay::{{closure}}
0.1% 0.2% 13.9KiB iced_wgpu iced_wgpu::Renderer::present
0.1% 0.2% 13.8KiB reqwest <futures_util::future::try_future::try_flatten::TryFlatten<Fut,<Fut as futures_core::future::TryFuture>::Ok> as core::futur...
0.1% 0.2% 13.5KiB rustybuzz rustybuzz::hb::ot_shape_plan::hb_ot_shape_plan_t::new
0.1% 0.2% 13.1KiB iced <T as iced::application::View<State,Message,Theme,Renderer>>::view
0.1% 0.2% 13.0KiB hyper_util hyper_util::client::legacy::client::Client<C,B>::send_request::{{closure}}
0.1% 0.2% 12.8KiB hyper_util hyper_util::client::legacy::client::Client<C,B>::send_request::{{closure}}
0.1% 0.2% 12.8KiB naga naga::valid::function::<impl naga::valid::Validator>::validate_function
0.1% 0.2% 12.6KiB http http::header::name::parse_hdr
0.1% 0.2% 12.5KiB wgpu wgpu_core::device::life::LifetimeTracker<A>::triage_suspected
0.1% 0.2% 12.5KiB data_encoding data_encoding::Encoding::decode_mut
0.1% 0.2% 12.5KiB naga naga::front::wgsl::lower::Lowerer::lower
0.1% 0.2% 12.2KiB hyper_util hyper_util::client::legacy::client::Client<C,B>::send_request::{{closure}}
0.1% 0.2% 12.1KiB hickory_resolver <futures_util::stream::once::Once<Fut> as futures_core::stream::Stream>::poll_next
0.1% 0.2% 12.1KiB iroh_quinn_proto iroh_quinn_proto::connection::Connection::poll_transmit
0.1% 0.2% 12.0KiB rcgen yasna::writer::DERWriter::with_length
0.1% 0.2% 12.0KiB iroh_net iroh_net::magicsock::MagicSock::handle_disco_message
0.1% 0.2% 11.9KiB rustls <rustls::server::hs::ExpectClientHello as rustls::common_state::State<rustls::server::server_conn::ServerConnectionData>>::...
0.1% 0.2% 11.7KiB iroh_net iroh_net::magicsock::relay_actor::ActiveRelay::run::{{closure}}
0.1% 0.2% 11.6KiB cosmic_text unicode_bidi::compute_bidi_info_for_para
0.1% 0.2% 11.6KiB iroh_net <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.1% 0.2% 11.1KiB wgpu <wgpu::backend::wgpu_core::ContextWgpuCore as wgpu::context::Context>::device_create_render_pipeline
0.1% 0.2% 11.0KiB iroh_net <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.1% 0.2% 11.0KiB iroh_net <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.1% 0.2% 10.9KiB reqwest reqwest::connect::with_timeout::{{closure}}
0.1% 0.2% 10.8KiB swash zeno::path_data::apply
0.1% 0.2% 10.6KiB naga naga::back::msl::writer::Writer<W>::put_block
0.1% 0.2% 10.6KiB igd_next h2::proto::connection::Connection<T,P,B>::poll2
0.1% 0.2% 10.5KiB reqwest h2::proto::connection::Connection<T,P,B>::poll2
0.1% 0.2% 10.3KiB wgpu <wgpu::backend::wgpu_core::ContextWgpuCore as wgpu::context::Context>::device_create_bind_group
0.1% 0.2% 10.3KiB reqwest hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_inner
0.1% 0.2% 10.1KiB naga naga::front::wgsl::lower::Lowerer::block
0.1% 0.2% 10.1KiB swash zeno::scratch::Inner::apply
0.1% 0.2% 10.0KiB plotters plotters::chart::builder::ChartBuilder<DB>::build_cartesian_2d
0.1% 0.2% 9.9KiB rustybuzz rustybuzz::hb::tag_table::tags_from_complex_language
0.1% 0.2% 9.8KiB wgpu wgpu_core::command::bundle::RenderBundleEncoder::finish
0.1% 0.2% 9.7KiB iced_wgpu iced_wgpu::text::prepare
0.1% 0.2% 9.7KiB wgpu <T as wgpu::context::DynContext>::adapter_request_device
0.1% 0.2% 9.6KiB wgpu_core <wgpu_core::pipeline::CreateShaderModuleError as core::fmt::Display>::fmt
0.1% 0.2% 9.3KiB iroh_quinn_proto iroh_quinn_proto::connection::Connection::process_payload
0.1% 0.2% 9.3KiB sha2 sha2::sha512::compress512
0.1% 0.2% 9.2KiB hickory_proto hickory_proto::rr::record_data::RData::read
0.1% 0.2% 9.1KiB iroh_quinn iroh_quinn::endpoint::Endpoint::connect_with
0.1% 0.2% 9.1KiB rustls rustls::client::hs::emit_client_hello_for_retry
0.1% 0.2% 9.0KiB naga naga::valid::function::<impl naga::valid::Validator>::validate_block_impl
0.1% 0.2% 9.0KiB std std::backtrace_rs::symbolize::gimli::resolve
0.1% 0.2% 8.9KiB igd_next <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
0.1% 0.2% 8.9KiB naga naga::front::wgsl::error::Error::as_parse_error
0.1% 0.1% 8.7KiB yazi yazi::decode::inflate
0.1% 0.1% 8.7KiB wgpu_hal wgpu_hal::metal::device::<impl wgpu_hal::metal::Device>::load_shader
0.1% 0.1% 8.6KiB wgpu wgpu_core::command::compute::<impl wgpu_core::global::Global<G>>::command_encoder_run_compute_pass
0.1% 0.1% 8.5KiB hickory_resolver hickory_resolver::name_server::name_server_pool::NameServerPool<P>::try_send::{{closure}}
0.1% 0.1% 8.3KiB iroh_net <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.1% 0.1% 8.3KiB netdev netdev::interface::get_interfaces
0.1% 0.1% 8.2KiB swash zeno::mask::Mask<D>::render_into
0.1% 0.1% 8.2KiB std std::backtrace_rs::symbolize::gimli::Context::new
0.1% 0.1% 8.2KiB iroh_net <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
0.1% 0.1% 8.1KiB idna idna::uts46::processing
0.1% 0.1% 8.1KiB naga naga::back::msl::writer::Writer<W>::put_expression
0.1% 0.1% 7.8KiB iroh_net iroh_net::tls::certificate::generate
0.1% 0.1% 7.8KiB ttf_parser ttf_parser::tables::cff::cff1::_parse_char_string
0.1% 0.1% 7.6KiB rustls? <rustls::enums::CipherSuite as core::fmt::Debug>::fmt
0.1% 0.1% 7.6KiB iroh_quinn iroh_quinn::endpoint::RecvState::poll_socket
0.1% 0.1% 7.5KiB naga naga::valid::analyzer::FunctionInfo::process_expression
0.1% 0.1% 7.4KiB cosmic_text cosmic_text::buffer_line::BufferLine::layout_in_buffer
0.1% 0.1% 7.4KiB tokio tokio::runtime::task::core::Core<T,S>::poll
0.1% 0.1% 7.3KiB data_encoding data_encoding::Encoding::encode_mut
0.1% 0.1% 7.3KiB async_global_executor std::sys::backtrace::__rust_begin_short_backtrace
0.1% 0.1% 7.2KiB igd_next <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
0.1% 0.1% 7.2KiB h2 h2::frame::headers::HeaderBlock::into_encoding
0.1% 0.1% 7.1KiB clap_builder clap_builder::parser::validator::Validator::validate
43.6% 78.3% 4.5MiB And 14376 smaller methods. Use -n N to show more.
55.7% 100.0% 5.7MiB .text section size, the file size is 10.3MiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment