How to profile unmanaged C++ in a C# application

  • Thread starter Thread starter MB
  • Start date Start date
M

MB

I have a C# console app that calls methods in an unmanaged C++ dll.
The unmanaged C++ dll starts some threads and does some background
work.

The app is using about 50% CPU, and I think that all the CPU usage is
in the C++ dll.

I've run the app under a .Net profiler called dotTrace, and that tool
doesn't show much CPU usage in the C# part of the application. (This
confirms theory because the C# app doesn't really do much more than
call into the C++ dll.)

Can anyone suggest a tool that can help me profile the performance in
the unmanaged C++ dlls?

A further complication is that the unmanaged C++ dll is a third party
dll to which we have the source code. i.e. I can look thru the code,
but I cannot rebuild it.

Thanks.

Mitch
 
Back
Top