public class PerformanceStatsServiceImpl extends Object implements PerformanceStatsService
Constructor and Description |
---|
PerformanceStatsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Map<ActionIdentifier,Stats> |
getAndClearStatistics()
Obtain statistics from all action executions registered so far.
|
void |
recordExecution(ActionIdentifier actionIdentifier,
long durationMillis)
Record execution of an action for which performance was measured.
|
public void recordExecution(@NotNull ActionIdentifier actionIdentifier, long durationMillis)
PerformanceStatsService
recordExecution
in interface PerformanceStatsService
actionIdentifier
- identifier for the executed actiondurationMillis
- time it took the action to complete, in milliseconds@NotNull public Map<ActionIdentifier,Stats> getAndClearStatistics()
PerformanceStatsService
getAndClearStatistics
in interface PerformanceStatsService
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.