public class PerformanceStatsServiceImpl extends Object implements PerformanceStatsService
Constructor and Description |
---|
PerformanceStatsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
@NotNull Map<ActionIdentifier,Stats> |
getAndClearStatistics()
Obtain statistics from all action executions registered so far.
|
void |
recordExecution(@NotNull ActionIdentifier actionIdentifier,
long durationMillis)
Record execution of an action for which performance was measured.
|
public void recordExecution(@NotNull @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 @NotNull Map<ActionIdentifier,Stats> getAndClearStatistics()
PerformanceStatsService
getAndClearStatistics
in interface PerformanceStatsService
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.