[Mono-devel-list] "xml-trace" option for mono

Paolo Molaro lupus at ximian.com
Thu Apr 1 11:39:23 EST 2004

On 03/31/04 Juraj Skripsky wrote:
> I'm thinking of adding a xml-version of the trace option to mono. The
> trace output would be completely equivalent to the current trace option.
> Often I find myself searching rather large traces with lots of
> information I don't need.

It's fine with me. It's also a good opportunity to remove the trace
support from the jit proper and put it in a mono profiler module so it
doesn't bloat the mono core. You can do this by adding a function to the
profiler interface that returns true/false when a method needs to be
traced. Then you write a profiler module (see mono/mono/profiler/ for an
example) that registers a callback to implement the new profiler
interface and move the existing trace support code from mini/trace.c
to the profiler.
The last change needed is to make the --trace option in mini to load the
profiler module (see the handling of --profile) and pass the options to
it so that the existing user interface continues to work.

Please, take a look at the code and feel free to ask for more details if
you need them.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list