static bool IsInteresting(IntPtr counter)
            {
                MonoCounterFlags section = Native.mono_counter_get_section(counter);

                if ((section & MonoCounterFlags.MONO_COUNTER_GC) == 0)
                {
                    return(false);
                }

                MonoCounterFlags variance = Native.mono_counter_get_variance(counter);

                if ((variance & MonoCounterFlags.MONO_COUNTER_MONOTONIC | MonoCounterFlags.MONO_COUNTER_VARIABLE) == 0)
                {
                    return(false);
                }

                return(true);
            }
 public static extern void mono_counters_register_with_size(string name, MonoCounterFlags type, IntPtr addr, int size);
 public static extern void mono_counters_register(string descr, MonoCounterFlags type, IntPtr addr);