u/mttdin r/ReverseEngineering • Recommends
“How to Write a Heap Memory Profiler” - CppCon 2019 - Milian Wolff
189K subscribers • 101 videos on Hallway • Conference channel
Advanced. Deep dive for people who know the field.
7.1K views7 years ago1 recommendation
Systems programmingTools and practicePerformance and optimizationMemory managementC++
Milian Wolff demonstrates how to build a proof-of-concept heap memory profiler on Linux, covering function interception, runtime injection, and stack unwinding.
CppCon.org Discussion & Comments: reddit.com/r/cpp/ Presentation Materials: github.com/CppCon/CppCon2019 — How to Write a Heap Memory Profiler Have you ever wondered how profilers work? Did you ever run into a situation where you wanted to write your own custom profiler, but didn't know how to go about it? Then this talk is for you. We will build a proof-of-concept heap profiler on Linux that implements the most important aspects of a custom tracing profiler: Intercepting function calls, runtime injection, call stack unwinding and debug symbol resolution. All of these concepts are generic and don't only apply to a heap profiler, we will just use that as a motivating example. The talk will also touch on some of the lessons learned creating a productionized heap profiler called heaptrack: What data format should you use? How can you compress the data? What needs to be taken into account to support profiling on embedded platforms? Combined, this talk will teach you about some of the layers behind the scenes of a standardized C++ application. Sadly, these layers tend to be platform dependent. For that reason, this talk concentrates on Linux, but the core principles apply to other platforms too. — Milian Wolff Milian Wolff is a Senior Software Engineer at KDAB, Milian leads the R&D in tooling and profiling in which he has a special interest. Milian created Massif-Visualizer, heaptrack and hotspot, all of which are now used regularly to improve the performance of C++ and Qt applications. When not applying his knowledge to improving code base performance for KDAB’s customers, Milian maintains QtWebChannel for the Qt Project and is co-maintainer of the KDevelop IDE. In 2015, Milian won KDE’s Akademy Award for his work on Clang integration. He has a Masters Degree in Physics. — Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctfWhat people say. Recommended as a great introduction to how memory profilers work under the hood.
u/mttdin r/ReverseEngineering • Recommends