public class DutyCycleStallTracker extends DutyCycleTracker
| Constructor and Description |
|---|
DutyCycleStallTracker(AtomicCounter maxCycleTime,
AtomicCounter cycleTimeThresholdExceededCount,
long cycleTimeThresholdNs)
Create a tracker to track max cycle time and excesses of a threshold.
|
| Modifier and Type | Method and Description |
|---|---|
AtomicCounter |
cycleTimeThresholdExceededCount()
Get threshold exceeded counter.
|
long |
cycleTimeThresholdNs()
Get threshold value.
|
AtomicCounter |
maxCycleTime()
Get max cycle time counter.
|
void |
reportMeasurement(long durationNs)
Callback called to report duration of cycle.
|
measureAndUpdate, toString, updatepublic DutyCycleStallTracker(AtomicCounter maxCycleTime, AtomicCounter cycleTimeThresholdExceededCount, long cycleTimeThresholdNs)
maxCycleTime - counter for tracking.cycleTimeThresholdExceededCount - counter for tracking.cycleTimeThresholdNs - to use for tracking excesses.public AtomicCounter maxCycleTime()
public AtomicCounter cycleTimeThresholdExceededCount()
public long cycleTimeThresholdNs()
public void reportMeasurement(long durationNs)
reportMeasurement in class DutyCycleTrackerdurationNs - of the duty cycle.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.