🛠️ Fix the Diagnostic Tools Memory Graph Staying Blank
The Memory Usage graph in the Diagnostic Tools window (Debug > Windows > Show Diagnostic Tools) is fed by an ETW (Event Tracing for Windows) session that Visual Studio starts against the debuggee process. That session can only be created across the same privilege boundary as the process it’s tracing: if the app you’re debugging requests elevation (a UAC prompt, a manifest requiring administrator) while devenv.exe itself is running as a standard user, the ETW trace never attaches, and the graph simply sits flat at zero for the whole session with no error dialog telling you why.
🔎 The Problem
Debug > Windows > Show Diagnostic Tools Memory Usage graph: flat line at 0 KB for the entire debug session Events tab: no GC or allocation events ever appear Process: requires elevation (app.manifest requestedExecutionLevel="requireAdministrator") devenv.exe: running as standard user (no UAC prompt was shown for VS itself)
✅ Fix: The Diagnostic Tools Memory Graph Staying Blank
- Close Visual Studio and relaunch it with “Run as administrator” whenever the project you’re debugging requires elevation, so devenv.exe and the debuggee share the same privilege level.
- Check the project’s app.manifest or Properties > Security settings for a requestedExecutionLevel of requireAdministrator before you assume the graph itself is broken.
- If you can’t run VS elevated, temporarily drop the manifest’s elevation requirement for local debugging and re-add it before shipping, so the Diagnostic Tools session has something it can actually trace.
🚨 Why This Is Dangerous
- A blank memory graph is easy to misread as “no allocations happening,” which can send you looking for a leak in the wrong place entirely while the real problem is that the profiler was never collecting data at all.
A diagnostic tool that silently can’t attach looks identical to an app that silently has nothing to report — check the privilege boundary before you trust the graph.




