Home Explore Blog CI



rustc

2nd chunk of `src/profiling/wpa_profiling.md`
0702b843ec4a6b41efd2224c737a8b57da7dde5900ec94360000000100000372


Next, we will need to tell WPA to load and process debug symbols so that it can properly demangle
the Rust stack traces. To do this, click "Trace" and then choose "Load Symbols". This step can take
a while.

Once WPA has loaded symbols for rustc, we can expand the rustc.exe node and begin drilling down
into the stack with the largest allocations.

To do that, we'll expand the `[Root]` node in the "Commit Stack" column and continue expanding
until we find interesting stack frames.

> Tip: After selecting the node you want to expand, press the right arrow key. This will expand the
node and put the selection on the next largest node in the expanded set. You can continue pressing
the right arrow key until you reach an interesting frame.


Title: Analyzing Memory Allocations with WPA
Summary
This section explains how to load debug symbols into WPA to demangle Rust stack traces and analyze memory allocations. It describes how to expand the `[Root]` node in the "Commit Stack" column and drill down into the stack to identify the stack frames responsible for the largest allocations, providing a tip to efficiently navigate through the stack using the right arrow key.