@Retention(value=RUNTIME) public @interface MustNotPrintStats
JiraStatsin the "print-in-thread" mode, stats are logged inline, within the thread running the measured operation. If
JiraStats.JIRA_STATS_LOGGING_INTERVALhas passed since the last logging, once the result has been stored and before the method returns, stats are logged and the snapshot is reset. This is not an extremely heavy operation (no DB access or so), but it does require some CPU cycles, and it depends on the logging. Hence, in performance-critical methods (e.g. something that's called 1000 times per second), use this annotation to avoid unexpected hiccups.
Copyright © 2002-2022 Atlassian. All Rights Reserved.