Expand description
Which fusevm execution tier a program’s bytecode actually reaches.
Enabling the JIT is not the same as being compiled by it, and the only
honest way to tell the two apart is to ask the VM. This module runs a
program and then queries fusevm’s own eligibility and cache predicates —
is_block_eligible, block_jit_is_compiled, trace_is_compiled,
find_jit_region — so the answer comes from the compiler that would have
done the work rather than from an assumption about it.
node --tiers script.js prints the report.
Structs§
- Chunk
Tiers - What the tiers did with one chunk.
- Loop
- A loop header — the target of a backward branch — and what became of it.
- Report
- What the tiers did with one program.
Functions§
- inspect
- Report on one already-executed chunk, as a whole-program report. Used by tests that build a chunk by hand.
- inspect_
all - Report on every chunk a compiled program holds, in lowering order.
- inspect_
chunk - Report on one already-executed chunk.
- report
- Compile and run
src, then report which tiers took each of its chunks.