public RecordValueWithCount ( long value, long count ) : void | ||
value | long | The value to be recorded |
count | long | The number of occurrences of this value to record |
return | void |
/// <summary> /// Record a value in the histogram (adding to the value's current count) /// </summary> /// <param name="value">The value to be recorded</param> /// <param name="count">The number of occurrences of this value to record</param> /// <exception cref="System.IndexOutOfRangeException">if value is exceeds highestTrackableValue</exception> public void RecordValueWithCount(long value, long count) { var criticalValueAtEnter = _recordingPhaser.WriterCriticalSectionEnter(); try { _activeHistogram.RecordValueWithCount(value, count); } finally { _recordingPhaser.WriterCriticalSectionExit(criticalValueAtEnter); } }