You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the "top" of the stack (the crash location). Need to walk down the stack to find your code
Look at the Call Stack pane (usually in the bottom left of VS Code)
Should see a list of function names
The top ones will be greyed out or confusing (e.g., rust_panic, etc.)
Scan the list until you see the first function that belongs to your project
It should look like: find_record (or main::find_record)
Level 3: Profiling
Try with config::STABLE_SORT set to true (more allocations) and false (in place)
flamegraph vs flamechart
Flamegraph (default)
Flamechart (--flamechart)
X-axis
Represents Population (frequency)
Represents Time
Behavior
It sorts stack traces alphabetically and merges identical stacks
It preserves the chronological order of samples and does not merge distinct calls.
Visual
If function A calls function B at the beginning of the program, and again at the end, a standard flamegraph merges them into one single, wide bar.
If function A calls function B at the beginning, and again at the end, you will see two distinct bars for B separated by a gap (or other functions) on the graph.
Goal
To answer "Where is the most CPU time being spent in total?"
To answer "When did this specific spike occur, and what was the sequence of events?"