Beispiel #1
0
 /// <summary>
 /// Decrement the value
 /// </summary>
 private void DecrementProbe(OrmPerformanceMetric metric)
 {
     if (this.m_provider is IDbMonitorProvider idmp && idmp.MonitorProbe is OrmClientProbe ocp)
     {
         ocp.Decrement(metric);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Average the time
 /// </summary>
 internal void AverageWith(OrmPerformanceMetric metric, long value)
 {
     this.m_queueInstructions.Enqueue(new KeyValuePair <OrmPerformanceMetric, long>(metric, value));
     this.m_resetEvent.Set();
 }
Beispiel #3
0
 /// <summary>
 /// Decrement the value
 /// </summary>
 internal void Decrement(OrmPerformanceMetric metric)
 {
     this.m_queueInstructions.Enqueue(new KeyValuePair <OrmPerformanceMetric, long>(metric, -1));
     this.m_resetEvent.Set();
 }