Exemplo n.º 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);
     }
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }