[Mono-dev] Finding the invoked object in a profiler

Zoltan Varga 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
> doable).
> 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?
> Cheers,
>   Ruben
> --
> Ruben Vermeersch (rubenv)
> http://www.savanne.be/
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100409/08476b17/attachment.html 

More information about the Mono-devel-list mailing list