Wrapper for Sentry JVM profiling (manual lifecycle).
For profiling to work, io.sentry/sentry-async-profiler must be on the classpath
and Sentry must be initialized with {:profile-session-sample-rate 1.0 :profile-lifecycle :manual}.
Wrapper for Sentry JVM profiling (manual lifecycle).
For profiling to work, `io.sentry/sentry-async-profiler` must be on the classpath
and Sentry must be initialized with `{:profile-session-sample-rate 1.0 :profile-lifecycle :manual}`.(start-profiler!)Starts the JVM profiler session.
Only meaningful when {:profile-lifecycle :manual} is set in sentry-clj.core/init!
and io.sentry/sentry-async-profiler is on the classpath.
Starts the JVM profiler session.
Only meaningful when `{:profile-lifecycle :manual}` is set in `sentry-clj.core/init!`
and `io.sentry/sentry-async-profiler` is on the classpath.(stop-profiler!)Stops the current JVM profiler session and sends the profile to Sentry.
Stops the current JVM profiler session and sends the profile to Sentry.
(with-profiling & body)Wraps body in a profiling session, calling start-profiler! before and
stop-profiler! after. Guarantees stop-profiler! is called even if an
exception is thrown.
Wraps `body` in a profiling session, calling `start-profiler!` before and `stop-profiler!` after. Guarantees `stop-profiler!` is called even if an exception is thrown.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |