Interface OperationStatsCollector
public interface OperationStatsCollector
Implementations of this can use to mark the relevant statistics.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidIncrement the finishFailure countervoidstart()Increment the start countervoidupdateBlobReferencesSize(long size) Update the size of blob referencesvoidupdateDuration(long time, TimeUnit timeUnit) Increment the duration timervoidupdateMarkDuration(long time, TimeUnit timeUnit) Increment the mark phase duration timervoidupdateNumBlobReferences(long num) Update the number of blob referencesvoidupdateNumCandidates(long num) Update the number of candidates foundvoidupdateNumDeleted(long num) Update the number deletedvoidupdateSweepDuration(long time, TimeUnit timeUnit) Increment the sweep phase duration timervoidupdateTotalSizeDeleted(long size) Update the size deleted
-
Field Details
-
NOOP
-
-
Method Details
-
start
void start()Increment the start counter -
finishFailure
void finishFailure()Increment the finishFailure counter -
updateNumDeleted
void updateNumDeleted(long num) Update the number deleted- Parameters:
num-
-
updateNumCandidates
void updateNumCandidates(long num) Update the number of candidates found- Parameters:
num-
-
updateTotalSizeDeleted
void updateTotalSizeDeleted(long size) Update the size deleted- Parameters:
size-
-
updateNumBlobReferences
void updateNumBlobReferences(long num) Update the number of blob references- Parameters:
num-
-
updateBlobReferencesSize
void updateBlobReferencesSize(long size) Update the size of blob references- Parameters:
size-
-
updateDuration
Increment the duration timer- Parameters:
time- time recorded for the operationtimeUnit- unit of time
-
updateMarkDuration
Increment the mark phase duration timer- Parameters:
time- time recorded for the operationtimeUnit- unit of time
-
updateSweepDuration
Increment the sweep phase duration timer- Parameters:
time- time recorded for the operationtimeUnit- unit of time
-