How can we help you today? How can we help you today?

Profiling .NET application that loads c++/cli library

We migrated from net48 to net8.0 and now profiler doesn't work. Actually we experience the same problem with dotTrace and few days ago I created post on SO with example of application that crushes dotTrace and I see the same error with ANTS Performance Profiler. Do you think it can be fixed in a near future?

https://stackoverflow.com/questions/79123745
Yola
1

Comments

3 comments

  • Peter_Laws
    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.
    Peter_Laws
    0
  • Yola
    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.
    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.
    Yola
    0
  • LukeMathew12

    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.

    LukeMathew12
    0

Add comment

Please sign in to leave a comment.