Package gda.images.camera
Class FrameStatistics
java.lang.Object
gda.images.camera.FrameStatistics
Class that can keep track of frames being 'processed' (for example, received from a network stream, decoded, or
dispatched to listeners).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected longprotected intprotected longprotected ThreadLocal<Long> protected long -
Constructor Summary
ConstructorsConstructorDescriptionFrameStatistics(String name, int settleFrames, int reportInterval) Creates a new statistics gathering/reporting object. -
Method Summary
Modifier and TypeMethodDescriptionvoidSignals that a frame has been processed.voidreset()Resets this counter.void
-
Field Details
-
firstFrameProcessed
protected boolean firstFrameProcessed -
firstFrameProcessedTime
protected long firstFrameProcessedTime -
framesProcessed
protected int framesProcessed -
startTimes
-
totalProcessingTime
protected long totalProcessingTime -
processingHwm
protected long processingHwm
-
-
Constructor Details
-
FrameStatistics
Creates a new statistics gathering/reporting object.- Parameters:
name- name for this objectsettleFrames- number of frames to ignore before beginning statistics gatheringreportInterval- the interval (in frames) at which statistics will be logged
-
-
Method Details
-
reset
public void reset()Resets this counter. -
startProcessingFrame
public void startProcessingFrame() -
finishProcessingFrame
public void finishProcessingFrame()Signals that a frame has been processed.
-