Search code examples
c#visual-studio-codeperformance-testingmemory-profiling

How to profile and measure C#/C++/Java code performance with VSCode?


I have searched somewhat within VSCode extensions, plugins, googled, but nothing seems to give me similar tool as standard VS provides.

There is a whole list of code profilers for the big VS, (only .NET and managed c++)..

With the 'real' VisualStudio you have pretty advanced profiling tools, supporting many languages, that MSVS supports.

But I can't get anything for VSCode. (Yap, I found this answer, but seems to me much too complicated. If there was anything with GUI, similar to JavaScript built- in profiler - would be awesome :)

Is anyone aware of such possibility for C#/C++/Java, please ?

Target: Linux server, Linux embedded, but I can run (just C# code) on windows too.


Solution

  • Intel VTune Profiler supports .net core and C++ (binary) code, works on Windows and Linux, works stand alone (though it can integrate with Visual Studio) and it is completely free. Also, it is kind of "heavy artillery" among profilers, it is more advanced than VS tools.

    https://www.intel.com/content/www/us/en/developer/tools/oneapi/vtune-profiler-documentation.html