ilusm.dev

prof

CPU/memory profiling hooks, flame graph data, hotspot detection.

Load with: use prof

Quick example

use prof

result = prfbg("value", "hello")
prn(result)

Functions

Functions

prfst()

Sets a value or starts a process.

prfbg(p, name)

Performs the operation. Takes p, name.

prfen(p)

Encodes. Takes p.

prfwr(p, name, fn)

Writes data. Takes p, name, fn.

prfal(p, bytes)

Performs the operation. Takes p, bytes.

prfsn(p, label)

Performs the operation. Takes p, label.

prfht(p)

Performs the operation. Takes p.

prffl(spans, out)

Performs the operation. Takes spans, out.

prfrp(p)

Performs the operation. Takes p.

Module aliases

These are the public-facing names you call with use prof:

  • prof.new()
  • prof.bg(p, n)
  • prof.en(p)
  • prof.wr(p, n, f)
  • prof.al(p, b)
  • prof.snap(p, l)
  • prof.hot(p)
  • prof.rpt(p)

Notes

  • Code profiling - timing, call counts.