jit.v (Verbose JIT Compiler Output) Reference
Module defined in `lua/common/jit/v.lua`. Verbose mode for the LuaJIT compiler - prints one line per generated trace showing compilation progress, trace linking, and abort reasons.
Module defined in lua/common/jit/v.lua. Verbose mode for the LuaJIT compiler - prints one line per generated trace showing compilation progress, trace linking, and abort reasons.
Exports
No M table exports. Used via luajit -jv or require("jit.v").on(outfile).
Entry Points
start(outfile)
Alias for dumpon. Opens output file and attaches trace dump handlers.
- Parameters:
outfile- string|nil - Output file (-for stdout, nil for stderr)
Internal Functions
dumpon(outfile)
Attaches JIT trace event handlers via jit.attach.
dumpoff()
Detaches all dump handlers.
dump_trace(what, tr, func, pc, otr, oex)
Callback for trace events. Formats trace start/stop/abort messages.
Output Format
[TRACE 1 (command line):1 loop]
[TRACE 2 (1/3) (command line):1 -> 1]
[TRACE --- foo.lua:44 -- leaving loop in root trace at foo.lua:50]Internal Notes
- Trace numbers, file:line, parent trace/exit shown for side traces
- Arrow shows trace link target
- Aborted traces prefixed with
---and include reason - Uses
jit.utilfor function info andjit.vmdeffor IR names
jit.p (LuaJIT Profiler) Reference
Module defined in `lua/common/jit/p.lua`. LuaJIT's built-in low-overhead profiler CLI interface. Collects stack samples and outputs top-N lists, annotated source, or raw data for flame graphs.
jit.vmdef (VM Definitions) Reference
Module defined in `lua/common/jit/vmdef.lua`. Auto-generated file containing LuaJIT VM bytecode names, IR names, IR field definitions, and C function call mappings. **DO NOT EDIT** - generated by LuaJ