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
sultan
0

Comments

5 comments

  • Robert C
    Hi,

    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
    Robert C
    0
  • grynearson
    Is it possible to profile just the dll, for example, a dll being tested in NUnit?
    grynearson
    0
  • Robert C
    Hi,

    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
    Robert C
    0
  • Brian Donahue
    You may be interested in this, which is specific to Nunit:
    Brian Donahue
    0
  • grynearson
    Thanks Robert and Brian. That answers my question, and lets me do just whata I wanted.
    grynearson
    0

Add comment

Please sign in to leave a comment.