/// <summary> /// Turn on code profiling /// </summary> /// <param name="bus"></param> /// <param name="counterPolling"></param> public static void EnableReporting(IBus bus, double notifyInterval = 5000) { if (_instance == null) { lock (_mutex) { if (_instance == null) { _instance = new Counter(notifyInterval); _bus = bus; } } } }
public static void DisableReporting() { _instance = null; }