Can we profile a dll of Class library?
sultan
Posts: 2
Dear,
Can we profile a dll of Class library? If so how can I do that? If no, then what to do if I need to profile a dll.
Sincere Regards,
Sultan
Can we profile a dll of Class library? If so how can I do that? If no, then what to do if I need to profile a dll.
Sincere Regards,
Sultan
Comments
Yes, you can. If you profile the application that uses the DLL, then any .NET DLLs it uses will also be profiled. Make sure that you've also got the .PDB file associated with your class library in the same location if you want to see the source code.
Hope that helps,
Robert
Red Gate
Whilst you can't directly profile just the DLL, you can choose to include or exclude namespaces, which normally does the trick. So, for instance, if you're profiling something in nunit, then you could exclude the namespace "NUnit".
If you're profiling a debug build of your DLL, then it's even easier - just choose to profile "only .NET methods with source code", and it should automatically only profile your library.
Hope that helps,
Robert
Red Gate