Turn Xdebug/Cachegrind profile files into actionable insights inside VS Code.
Xdebug Profile Viewer opens your profiler in a visual interface, highlights hotspots, shows per-function change risk, and helps you find bottlenecks fast.
Features
Automatically opens profiler files in a visual readonly editor:
cachegrind.out.*
*.out
*.cachegrind
*.cg
Hotspots table with multi-metric sorting.
Per-function metrics: CPU, memory, average per call, self percentage, and criticality.
Detailed panel with call structure:
callers (who calls it)
callees (what it calls)
fan-in, fan-out, risk, and optimization potential
Open source action to jump to file and line.
CodeLens in PHP files with Breakage risk: X% per function.
Localized UI:
Portuguese when VS Code language starts with pt
English otherwise
Why use it
Find real bottlenecks without leaving the editor.
Prioritize what to optimize based on impact.
Reduce refactor risk with coupling visibility.
Move from profile to source code in one click.
How it helps in practice
You generate an Xdebug profile.
You open the file in VS Code.
The Viewer shows hotspots automatically.
You filter functions, compare metrics, and choose what to optimize first.
You use Open source to jump directly to the relevant code.
In PHP files, CodeLens shows per-function risk based on indexed profiles.
Main settings
xdebugProfileViewer.pathMappings
Maps profile paths (for example, container paths) to local workspace paths.