Completed
Strategy #2: Intercepting malloc using Import Address Table redirection
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Self-Awareness in C++ Code
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 Tech At Bloomberg
- 3 The Bloomberg Terminal
- 4 We care about performance
- 5 Memory Leaks? In 2018??
- 6 Memory Usage: A Case Study
- 7 Usual Strategies
- 8 Building a memory profiler
- 9 Where is malloc?
- 10 Strategy #1: Intercepting malloc using the allocator shim
- 11 Strategy #2: Intercepting malloc using Import Address Table redirection
- 12 Capturing the traceback: helper func
- 13 Step 3: Build a callstack / size histogram
- 14 Data structures
- 15 Gotcha #1: recursive malloc
- 16 Gotcha #1 fix: recursion protection
- 17 RAll recursion protection
- 18 Gotcha #2 fix: Thread-local storage
- 19 Instrumentation walkthrough: 2
- 20 Instrumentation walkthrough: example
- 21 Tree representation
- 22 Building the tree
- 23 Hierarchical analysis
- 24 Graphical analysis
- 25 Example 1: Alloc/Dealloc
- 26 Example 2: Simple leak
- 27 Remember our Case Study
- 28 Case Study: normal run (no errors)
- 29 Case Study: with some errors
- 30 Case Study: The logging?
- 31 Combining callstacks and instance data
- 32 Allocation context
- 33 Mixed-mode systems