Where the executor spends its time.
For each program: wall-clock nanoseconds per compute unit, live. The Lean client executes every mainnet block. Its workers time each transaction and split the time among the programs it ran. Hot is time in machine code translated earlier; cold is time in transactions where a program's code was being translated as it ran.
| program | wall ns / CU | time | share | cold | calls | own CU | sBPF | instr. | x86 code | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Loading from the node… | |||||||||||
Time by program, from the executor itself.
Counters built into the executor (client/Parallel.lean), cumulative since it last started, refreshed every minute.
Calls between programs, taken apart
Every invocation records the compute units it used. A program's own units are those less the units of the programs it called.
Each transaction's time, shared out
A transaction's wall-clock worker time (loading accounts, input, running, calls, the result) is split among its programs by their own units. A program's time divided by its own units is its wall ns per CU.
Translated as it runs
The translator to x86-64 is lazy: a run is translated the first time it executes. Time is cold when a program's machine code grew during the transaction.