Uploaded December 2025 | Updated November 2026, 2 days ago
cppcon.org
---
Is Your C++ Code Leaking Memory? Discover the Power of Ownership-Aware Profiling - Alecto Irene Perez - CppCon 2025
---
When it comes to memory profiling, there are two questions that most people care about:
- Why is my program using so much memory?
- And, how do I make it use less memory?
Even with tools like valgrind, massif, or heaptrack, these questions can be challenging to answer. This talk introduces a new ownership-aware method for memory profiling, which directly ties allocations to objects under the RAII model.
Ownership-aware profiling allows for direct measurement of the size of all non-trivial objects allocated over the lifetime of a program, without manual instrumentation of the code.
In this talk, I explain the basics of memory profiling; I describe how to make memory profilers object-aware by tracking deallocations that occur during destructor calls; I present an open-source tool for ownership-aware profiling; and finally, I present a case study illustrating how to reduce memory usage by leveraging the insights provided by this technique.
---
Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Where'd_all_that_RAM_Go.pdf
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Alecto Irene Perez
Alecto Perez is a C++ enthusiast and Software Engineer at Vola Dynamics. Her specialties include API design, performance optimization, and numerical computing. She has a strong interest in template metaprogramming; in reducing compile times; and in building good tooling. Previous open-source work includes tuplet, a library which implemented tuples as an aggregate; rva, a library for recursive variants; and work on the MPI backend for NimbleSM, an open source Lagrangian finite-element code for solid mechanics.
---
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---
Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
#cpp #cplusplus #programming #softwareengineering #coding
cppcon.org
---
Is Your C++ Code Leaking Memory? Discover the Power of Ownership-Aware Profiling - Alecto Irene Perez - CppCon 2025
---
When it comes to memory profiling, there are two questions that most people care about:
- Why is my program using so much memory?
- And, how do I make it use less memory?
Even with tools like valgrind, massif, or heaptrack, these questions can be challenging to answer. This talk introduces a new ownership-aware method for memory profiling, which directly ties allocations to objects under the RAII model.
Ownership-aware profiling allows for direct measurement of the size of all non-trivial objects allocated over the lifetime of a program, without manual instrumentation of the code.
In this talk, I explain the basics of memory profiling; I describe how to make memory profilers object-aware by tracking deallocations that occur during destructor calls; I present an open-source tool for ownership-aware profiling; and finally, I present a case study illustrating how to reduce memory usage by leveraging the insights provided by this technique.
---
Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Where'd_all_that_RAM_Go.pdf
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Alecto Irene Perez
Alecto Perez is a C++ enthusiast and Software Engineer at Vola Dynamics. Her specialties include API design, performance optimization, and numerical computing. She has a strong interest in template metaprogramming; in reducing compile times; and in building good tooling. Previous open-source work includes tuplet, a library which implemented tuples as an aggregate; rva, a library for recursive variants; and work on the MPI backend for NimbleSM, an open source Lagrangian finite-element code for solid mechanics.
---
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---
Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
#cpp #cplusplus #programming #softwareengineering #coding










