Skip to content

Detailed memory benchmarks (memory profiling) #369

Closed

Description

@ok-nick

I've been using dhat-rs for memory profiling my Rust code. It shows exact stack traces of where allocations occur which has been extremely useful for optimizing my code. You can find more details about the output here. There's even a tool to generate flamegraphs from its output. Are there plans to add this type of functionality to Codspeed?

Activity

  1. art049 commented on May 24, 2026

    @art049
    Member

    Yes definitely this is planned. At the moment, we have the memory instrument tracking allocations: https://codspeed.io/docs/instruments/memory
    But having the call stack information of each allocation is definitely on the roadmap as it will also significantly helps agents optimize memory consumption

  2. changed the title [-]`dhat` for detailed memory benchmarks[/-] [+]Detailed memory benchmarks (memory profiling)[/+] on May 24, 2026
  3. jlucaso1 commented on Jun 19, 2026

    @jlucaso1

    This will be great

  4. self-assigned this
    on Oct 12, 2026
  5. not-matthias commented on Oct 12, 2026

    @not-matthias
    Member

    Hey @ok-nick @jlucaso1 , we now support Memory Flamegraphs in the memory instrument as of codspeed v5.4.0:

    Image

    You can find more information on how to setup the memory instrument here: https://codspeed.io/docs/instruments/memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions