Currently I’m developing a C# DLL to be used in a native C++ Application. Since the initialization of my DLL is rather slow I’d like to do some analysis there. Basically I would like to know which methods in my DLL are called in which order and how often.
One way would be to step through the code with the debugger. But that would take ages 😉 I’d rather have some kind of list that shows which of my methods was called how often.
Is there any way to get this automatically (without altering my code)?
Maybe even without third party tools like profilers etc.?
If don’t want to alter your code or make a manual expection with a debugger, a profiler is definitely the way to go.