Can we profile a dll of Class library?

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

Comments

  • 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 Chipperfield
    Red Gate
  • Is it possible to profile just the dll, for example, a dll being tested in NUnit?
  • 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 Chipperfield
    Red Gate
  • Brian DonahueBrian Donahue Posts: 6,590 New member
    You may be interested in this, which is specific to Nunit:
  • Thanks Robert and Brian. That answers my question, and lets me do just whata I wanted.
Sign In or Register to comment.