[Mono-dev] Finding the invoked object in a profiler
ruben at savanne.be
Mon Apr 5 15:50:45 EDT 2010
I'm currently writing a tool to track the correct disposal of resources
in my application. Am doing this by writing a custom profiler using
mono's profiling API. As part of this, I need to track when Dispose is
called on an object.
So I figured I could hook into the enter/leave profiling and evaluate
whether we're calling Dispose on each enter. So far so good (that's
When this happens, I need to be able to get a reference to the
MonoObject on which the Dispose method is invoked (basically "this" in
C#). Haven't found a way to do this though.
Is this possible? Anyone want to give me a hint for the right direction?
Ruben Vermeersch (rubenv)
More information about the Mono-devel-list