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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top