Raxol.Performance.FprofWrapper (Raxol v2.6.0)

View Source

Thin wrapper around :fprof that isolates apply/3 calls.

:fprof is an optional OTP application that may not be available at compile time (e.g. in releases without :tools). All interaction goes through apply/3 to avoid undefined-function compile warnings.

This module centralises those calls so the rest of the codebase can use normal function calls instead of apply(:fprof, ...).

Summary

Functions

Analyse profiling results.

Profile accumulated trace data.

Profile with options.

Stop fprof, ignoring errors if it isn't running.

Start the fprof server.

Stop the fprof server.

Start or stop tracing with the given options.

Functions

analyse(opts)

@spec analyse(keyword()) :: term()

Analyse profiling results.

profile()

@spec profile() :: term()

Profile accumulated trace data.

profile(opts)

@spec profile(keyword()) :: term()

Profile with options.

safe_stop()

@spec safe_stop() :: :ok

Stop fprof, ignoring errors if it isn't running.

start()

@spec start() :: term()

Start the fprof server.

stop()

@spec stop() :: term()

Stop the fprof server.

trace(opts)

@spec trace(atom() | list()) :: term()

Start or stop tracing with the given options.