Vibe.Profiler (vibe v0.2.1)

Copy Markdown View Source

Thin profiling helpers callable through Vibe.Eval.

These helpers intentionally return compact summaries. Raw profiler output can be redirected to artifact files by the caller when needed.

Summary

Functions

cprof(fun, opts \\ [])

@spec cprof(
  (-> term()),
  keyword()
) :: map()

eprof(fun, opts \\ [])

@spec eprof(
  (-> term()),
  keyword()
) :: map()

fprof(fun, opts \\ [])

@spec fprof(
  (-> term()),
  keyword()
) :: map()

process_growth(duration_ms \\ 1000, opts \\ [])

@spec process_growth(
  non_neg_integer(),
  keyword()
) :: [map()]