public PerformanceProfiler(string action)
 {
     Action  = action;
     Watcher = Watchers.GetOrAdd(action, x => new ConcurrentList <TimeSpan>());
     Start   = DateTime.UtcNow;
 }
Exemple #2
0
 /// <summary>Removes all current handlers from this event.</summary>
 public void ClearHandlers() => Handlers = new ConcurrentList <AsyncEventHandler>();