3 <p>Counters is a Mono API for flexible statistics collection
4 and is used to track different events inside the JIT.
6 <p>You would typically register an address with the
7 <tt>mono_counters_register
</tt> routine and increment the
8 counters from your application as you go. At the end of the
9 program you would call mono_counters_dump which will display
10 all the registered counters.
12 <p>If you need more complicated counter computation, a
13 function can be provided instead of an address. In that case
14 the
<tt>MONO_COUNTER_CALLBACK
</tt> flag must be ored in the
17 <p>The types that can be rendered are:
29 <p>To organize the output, you register also a section where
30 the counter will be displayed, or one of the following values
31 when you register your counter:
42 <h4><a name=
"api:mono_counters_dump">mono_counters_dump
</a></h4>
43 <h4><a name=
"api:mono_counters_enable">mono_counters_enable
</a></h4>
44 <h4><a name=
"api:mono_counters_register">mono_counters_register
</a></h4>