Hello HN,<p>For a while now, I've been working on a Visual Studio extension that enables you to see code execution and variables in real-time, directly in the VS editor. A couple months ago, I implemented a prototype of a "profiler" mode which shows how much time a line takes relatively to the entire function and since then, I have released it as an update to the extension you can use.<p>The profiler is completely real-time, meaning that you can watch how the profile changes depending on what is going on in the application. The instrumentation is automatic and is applied to all lines in the function, which means that you will not miss samples, like you would in a call stack sampling profiler. A really big advantage is that you can also freely browse around the codebase and explore the profile deeper and deeper without ever having to start or stop profiling sessions and waiting for the data to be assembled.<p>Each line gets brighter as its impact becomes larger on the function, which is very similiar to the design Visual Studio uses for its performance captures. Besides the line you can view its current function percentage and also how many times the line was executed in the function call. More detailed info like the precise time measurements can be viewed by hovering over the tooltip.<p>The extension with the new profiler mode is available on the VS marketplace: <a href="https://marketplace.visualstudio.com/items?itemName=donadigo.d0" rel="nofollow">https://marketplace.visualstudio.com/items?itemName=donadigo...</a> (activate the mode in top VS menu -> Extensions -> D0 -> Live Profiler).<p>If you want to follow the project or have questions, I'm always available in the Discord server here: <a href="https://discord.gg/PY6X3NMmuN" rel="nofollow">https://discord.gg/PY6X3NMmuN</a> and there's more info about the project on its website: <a href="https://d-0.dev/" rel="nofollow">https://d-0.dev/</a>