Example #1
0
 public ContentionStatsCollector(IMetrics metrics)
 {
     _metrics        = metrics;
     _eventPairTimer = new EventPairTimer <long>(
         EventIdContentionStart,
         EventIdContentionStop,
         x => x.OSThreadId
         );
 }
Example #2
0
 public JitStatsCollector(IMetrics metrics)
 {
     _metrics        = metrics;
     _eventPairTimer = new EventPairTimer <ulong>(
         EventIdMethodJittingStarted,
         EventIdMethodLoadVerbose,
         x => (ulong)x.Payload[0]
         );
 }
Example #3
0
 public JitEventParser(SamplingRate samplingRate)
 {
     _samplingRate   = samplingRate;
     _eventPairTimer = new EventPairTimer <ulong>(
         EventIdMethodJittingStarted,
         EventIdMethodLoadVerbose,
         x => (ulong)x.Payload[0],
         samplingRate
         );
 }
 public ThreadPoolSchedulingStatsCollector(IMetrics metrics)
 {
     _metrics        = metrics;
     _eventPairTimer = new EventPairTimer <long>(
         EventIdThreadPoolEnqueueWork,
         EventIdThreadPoolDequeueWork,
         x => (long)x.Payload[0],
         new Cache <long, int>(TimeSpan.FromSeconds(30), initialCapacity: 512)
         );
 }
Example #5
0
 public ContentionEventParser(SamplingRate samplingRate)
 {
     _samplingRate   = samplingRate;
     _eventPairTimer = new EventPairTimer <long>(
         EventIdContentionStart,
         EventIdContentionStop,
         x => x.OSThreadId,
         samplingRate
         );
 }
 public ThreadPoolSchedulingStatsCollector(double[] histogramBuckets, SamplingRate samplingRate)
 {
     _histogramBuckets = histogramBuckets;
     _samplingRate     = samplingRate;
     _eventPairTimer   = new EventPairTimer <long>(
         EventIdThreadPoolEnqueueWork,
         EventIdThreadPoolDequeueWork,
         x => (long)x.Payload[0],
         samplingRate,
         new Cache <long, int>(TimeSpan.FromSeconds(30), initialCapacity: 512)
         );
 }
 public KestrelEventParser(SamplingRate samplingRate)
 {
     _samplingRate = samplingRate;
     _eventPairTimerConnections = new EventPairTimer <long>(
         EventIdConnectionStart,
         EventIdConnectionStop,
         x => x.OSThreadId,
         samplingRate
         );
     _eventPairTimerRequests = new EventPairTimer <long>(
         EventIdRequestStart,
         EventIdRequestStop,
         x => x.OSThreadId,
         samplingRate
         );
 }
 public void SetUp()
 {
     _eventPairTimer = new EventPairTimer <long>(EventIdStart, EventIdEnd, x => (long)x.Payload[0]);
 }
Example #9
0
 public void SetUp()
 {
     _eventPairTimer = new EventPairTimer <long>(EventIdStart, EventIdEnd, x => (long)x.Payload[0], SampleEvery.TwoEvents);
 }