EflambeLive (eflambe_live v0.1.0)

Public API for EflambeLive. This API mirrors the API provided by :eflambe.

Link to this section Summary

Functions

Invoke a function and render a flamegraph of the function execution callstack.

"Capture" an invocation of a function anywhere on the Erlang node and render a flamegraph of the function execution callstack.

Link to this section Functions

Link to this function

apply(function_and_args, options \\ [])

@spec apply({(... -> any()), list()} | {module(), atom(), list()}, Keyword.t()) ::
  Kino.JS.t()

Invoke a function and render a flamegraph of the function execution callstack.

The function and args must be specified as a {fun, args} tuple or a {module, fun, args} tuple.

The function will be invoked by livebook and the flamegraph will be displayed in the cell below the code cell containing the apply/2 call as an SVG image.

Link to this function

capture(mfa, num_calls, options \\ [])

@spec capture(mfa(), integer(), Keyword.t()) :: Kino.JS.t()

"Capture" an invocation of a function anywhere on the Erlang node and render a flamegraph of the function execution callstack.

The function as a {module, function, arity} tuple.

This function will not return until the function you are "capturing" is invoked. When the function returns a flamegraph will be displayed in the cell below the code cell containing the apply/2 call as an SVG image.