示例#1
0
 /// <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;
             }
         }
     }
 }
示例#2
0
 public static void DisableReporting()
 {
     _instance = null;
 }