My Rust program (Well, game) is leaking memory, 4MB/s.

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • heaptrack

    A heap memory profiler for Linux

  • If none of the above helps - I recommend heaptrack as a tool for tracking down your memory usage.

  • bytehound

    A memory profiler for Linux.

  • I've found bytehound helpful for tracking memory leaks: https://github.com/koute/bytehound

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • leakdice

    Monte Carlo leak diagnostic for Linux binaries

  • Maybe try Leakdice: https://github.com/tialaramex/leakdice in C or rewritten in Rust: https://github.com/tialaramex/leakdice-rust/

  • leakdice-rust

    Rust re-implementation of leakdice

  • Maybe try Leakdice: https://github.com/tialaramex/leakdice in C or rewritten in Rust: https://github.com/tialaramex/leakdice-rust/

  • egui

    egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native

  • Are you aware of egui?

  • mevi

    A memory visualizer in Rust (ptrace + userfaultfd)

  • I don't think fasterthanlime wrote an article for this particular video (but his videos are an excellent watch in the world of programming videos), but the corresponding code was published at https://github.com/fasterthanlime/mevi

  • imgui

    Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

  • When you create a window in ImGui, it allocates memory but never releases it, so make sure that you are not creating windows with a different name at each frame. This issue may be related: https://github.com/ocornut/imgui/issues/2636

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • miri

    An interpreter for Rust's mid-level intermediate representation

  • Have you tried adding miri checks to see specific warnings it suggests? It should have some memory leak checks aswell. https://github.com/rust-lang/miri

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts