Package com.atlassian.bamboo.performance
Interface PerformanceStatsService
- All Known Implementing Classes:
PerformanceStatsServiceImpl
@Internal
@ThreadSafe
public interface PerformanceStatsService
Service for registering performance data from this Bamboo instance.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NotNull Map<ActionIdentifier, Stats> Obtain statistics from all action executions registered so far.voidrecordExecution(@NotNull ActionIdentifier actionIdentifier, long durationMillis) Record execution of an action for which performance was measured.
-
Method Details
-
recordExecution
Record execution of an action for which performance was measured.- Parameters:
actionIdentifier- identifier for the executed actiondurationMillis- time it took the action to complete, in milliseconds
-
getAndClearStatistics
Obtain statistics from all action executions registered so far. Wipe out all the currently held data. Note: All statistical values are measured in milliseconds.
-