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
0

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
  • Ariza official

    Profiling a .NET application that integrates a C++/CLI library can be tricky, especially when managed and unmanaged code interact. Tools like Visual Studio Profiler, dotTrace, or PerfView can help, but for deeper native code insights, combining them with Windows Performance Recorder (WPR) or Intel VTune often yields better results. Also, make sure symbols and mixed-mode debugging are properly configured for accurate call stacks.

    For more insights on debugging, performance tuning, and system-level development, this https://wordslibrary.com/ might be a valuable resource.

    Hope that helps streamline your profiling workflow!

    Ariza official
    0

Add comment

Please sign in to leave a comment.