I\'ve written a custom profiler that I can use to profile a .NET application. However it only works with standalone .NET executables.
https://docs.microsoft.com/en-us