Liking cljdoc? Tell your friends :D

sentry-clj.profiling

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}`.
raw docstring

start-profiler!clj

(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.
sourceraw docstring

stop-profiler!clj

(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.
sourceraw docstring

with-profilingcljmacro

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close