I've inherited a rather large WPF application, and I need to generate application traces for a significant portion of it. Because of the complexity of the project, I'd like to do this without making any changes to the code base, if possible. I mostly need to know the stack deltas, ie when a function call or return takes place. Is there a tool or methodology that will get me this trace with (preferably) no code changes? Is this even possible to do without writing a tool to add Trace calls to the code?
If it were limited to specific function calls, i think i could live with that. I have a tool that can do that for win32 api calls, via import table rewriting to redirect the dll function call to a custom stub that logs the call stack at that point. If there is no such tool that works 'out of the box' on .NET, does anyone know of a FAQ or something that explains how .NET DLL linkage works (export table, thunks, etc)?