[Mono-dev] How to access method arguments in custom profiler
Zoltan Varga
vargaz at gmail.com
Thu Oct 6 10:59:56 EDT 2005
Hi,
With the current mono code, you can't. It is possible to modify the
runtime code
to allow this, take a look at how tracing is implemented (i.e. mini/trace.c).
Zoltan
On 10/5/05, Riccardo Scandariato <riccardo.scandariato at gmail.it> wrote:
> Hi folks,
> I'm developing a custom profiler, which installs callbacks for
> method enter/leave occurrences, as follows:
>
> #include <mono/metadata/profiler.h>
> void
> mono_profiler_startup (const char *desc)
> {
> /* snip */
> mono_profiler_install_enter_leave (my_method_enter, my_method_leave);
> }
>
> I'm looking for an easy way to read and (possibly) modify actual
> arguments of a method invocation from within the "enter" callback (i.e.,
> my_method_enter).
>
> Thanks,
> -- ric
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list