Comments
4 comments
-
When you say it doesn't work, do you get a fault or does it just not show results for the cpp section please?
I ask because ANTS can only profile managed code, I'd expect no results for the unmanaged code. -
It fails completely. You can see the code on the linked SO question. I also see this problem in dotCover, you can find a link to their forum on SO as well.Peter_Laws said:When you say it doesn't work, do you get a fault or does it just not show results for the cpp section please?
I ask because ANTS can only profile managed code, I'd expect no results for the unmanaged code. -
I noticed that since migrating from .NET 4.8 to .NET 8.0, the profiler (ANTS or dotTrace) stops working correctly when a C++/CLI component is involved. As Peter Laws pointed out, ANTS Profiler is only designed to profile managed code, so it’s expected not to show anything for the unmanaged C++/CLI part—even if the app launches fine without crashing. It’d be great to hear if future updates might offer better support for mixed-mode scenarios or at least clearer messaging when unmanaged code paths are skipped.
-
That's a known profiling API change in .NET Core. Both JetBrains and Redgate have confirmed they're working on updates. Check their support pages for early access builds.
Add comment
Please sign in to leave a comment.
https://stackoverflow.com/questions/79123745