[Mono-dev] Finding the invoked object in a profiler
vargaz at gmail.com
Thu Apr 8 20:54:46 EDT 2010
This is unfortunately not supported by the current profiler interface.
On Mon, Apr 5, 2010 at 9:50 PM, Ruben Vermeersch <ruben at savanne.be> wrote:
> Hi everyone,
> 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)
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list