ilusm.dev

dx

Diagnostics, structured logging, tracing, performance profiling, error tracking.

Load with: use dx

Quick example

use dx

result = dxlga(10, "value")
prn(result)

Functions

Logger

dxlga(nm, lvl)

Performs the operation. Takes nm, lvl.

dxlvl()

Validates.

dxlvlnum(lvl)

Performs the operation. Takes lvl.

dxlg7(lg, hnd)

Performs the operation. Takes lg, hnd.

dxlgh(opts)

Performs the operation. Takes opts.

dxlg0(path, rot)

Performs the operation. Takes path, rot.

dxlg1(url, hdrs)

Performs the operation. Takes url, hdrs.

dxlgn(lvl, msg, meta)

Performs the operation. Takes lvl, msg, meta.

dxlgl(lg, lvl, msg, meta)

Performs the operation. Takes lg, lvl, msg, meta.

dxlgw(h, ent, src)

Performs the operation. Takes h, ent, src.

dxlg5(lvl)

Performs the operation. Takes lvl.

dxlg2(h, ent)

Performs the operation. Takes h, ent.

dxlg3(h, ent)

Performs the operation. Takes h, ent.

dxlgt(lg, msg, meta)

Performs the operation. Takes lg, msg, meta.

dxlgd(lg, msg, meta)

Performs the operation. Takes lg, msg, meta.

dxlg8(lg, msg, meta)

Performs the operation. Takes lg, msg, meta.

dxlg9(lg, msg, meta)

Performs the operation. Takes lg, msg, meta.

dxlgerr(lg, msg, meta)

Performs the operation. Takes lg, msg, meta.

dxlgf(lg, msg, meta)

Performs the operation. Takes lg, msg, meta.

dxlg6(lg, key, vl)

Performs the operation. Takes lg, key, vl.

dxlgc(lg)

Performs the operation. Takes lg.

dxlg4(lg, nm)

Performs the operation. Takes lg, nm.

Tracing

dxtr1(id)

Performs the operation. Takes id.

dxtr0()

Performs the operation.

dxtrc()

Performs the operation.

dxsp4(tc, nm, par)

Performs the operation. Takes tc, nm, par.

dxspn(tc, nm)

Performs the operation. Takes tc, nm.

dxsp1(tc, spn, sts)

Performs the operation. Takes tc, spn, sts.

dxsp0(spn, nm, data)

Performs the operation. Takes spn, nm, data.

dxsp2(spn, key, vl)

Performs the operation. Takes spn, key, vl.

dxsp3(spn, lg)

Performs the operation. Takes spn, lg.

dxwth(nm, cb)

Performs the operation. Takes nm, cb.

Profiling

dxcp1(freq)

Performs the operation. Takes freq.

dxcp0(pf)

Performs the operation. Takes pf.

dxcpp(pf)

Performs the operation. Takes pf.

dxmmp()

Performs the operation.

dxhep()

Performs the operation.

Error tracking

dxrrn(er, ctx)

Performs the operation. Takes er, ctx.

dxenv()

Performs the operation.

dxcpr(er, ctx, lg)

Processes or prints. Takes er, ctx, lg.

dxrrr(e, svc)

Performs the operation. Takes e, svc.

Metrics

dxcn0(nm)

Performs the operation. Takes nm.

dxcnt(c, n)

Performs the operation. Takes c, n.

dxggn(nm, v)

Performs the operation. Takes nm, v.

dxggs(g, v)

Performs the operation. Takes g, v.

dxhs0(nm, bks)

Performs the operation. Takes nm, bks.

dxhst(h, v)

Sets a value or starts a process. Takes h, v.

dxtmr(nm, cb)

Performs the operation. Takes nm, cb.

Health checks

dxhl1()

Performs the operation.

dxhlt(h, nm, cb)

Performs the operation. Takes h, nm, cb.

dxhl0(h)

Performs the operation. Takes h.

Distributed tracing

dxw3c()

Performs the operation.

dxw30(tc)

Performs the operation. Takes tc.

dxjgr()

Performs the operation.

Log aggregation queries

dxqry(lgs, q)

Performs the operation. Takes lgs, q.

Alerting

dxlr0(cond, act)

Performs the operation. Takes cond, act.

dxlrt(a, ent)

Performs the operation. Takes a, ent.

Debug REPL

dxrpl(ctx)

Performs the operation. Takes ctx.

Assertion helpers

dxsr1(cond, msg, lg)

Performs the operation. Takes cond, msg, lg.

dxsrt(a, b, msg, lg)

Performs the operation. Takes a, b, msg, lg.

dxsr0(a, b, msg, lg)

Performs the operation. Takes a, b, msg, lg.

Notes

  • DirectX/graphics API wrappers for Windows targets.