Interface PerformanceStatsService

    • Method Detail

      • recordExecution

        void recordExecution​(@NotNull
                             @NotNull ActionIdentifier actionIdentifier,
                             long durationMillis)
        Record execution of an action for which performance was measured.
        Parameters:
        actionIdentifier - identifier for the executed action
        durationMillis - time it took the action to complete, in milliseconds
      • getAndClearStatistics

        @NotNull
        @NotNull Map<ActionIdentifier,​Stats> 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.