[Mono-dev] Mono profiler question

Sanghyeon Seo sanxiyn at gmail.com
Fri Jun 1 08:35:20 EDT 2007


I want to write a Mono profiler that would call C# callback when
methods satisfying certain criteria are entered or left. In
particular, I want to check whether a certain custom attribute is
defined in the assembly that defines the method.

struct _MonoProfiler {
MonoClass *check_for_this_attribute;
}

void
mono_profiler_startup
{
prof->check_for_this_attribute = <MonoClass for class X in namespace
Y.Z, assembly W>
}

Eh, how do I get that MonoClass?

-- 
Seo Sanghyeon



More information about the Mono-devel-list mailing list