/// <summary> /// Include metrics around volume of locks contended. /// </summary> public Builder WithContentionStats() { StatsCollectors.Add(new ContentionStatsCollector()); return(this); }
public Builder WithCustomCollector(IEventSourceStatsCollector statsCollector) { StatsCollectors.Add(statsCollector); return(this); }
/// <summary> /// Include metrics around the size of the worker and IO thread pools and reasons /// for worker thread pool changes. /// </summary> public Builder WithThreadPoolStats() { StatsCollectors.Add(new ThreadPoolStatsCollector()); return(this); }
/// <summary> /// Include metrics recording the frequency and duration of garbage collections/ pauses, heap sizes and /// volume of allocations. /// </summary> public Builder WithGcStats() { StatsCollectors.Add(new GcStatsCollector()); return(this); }