nx_log_v2_test.nx
buildroot/runtime/nx_log_v2_test.nx
about
nx_log_v2_test.nx -- correctness + bench for fast emit.
PASS criteria:
T1 emit-correctness v2 emits the expected formatted line
T2 below-min fast path filtered emits return without writing
T3 perf-vs-v1 v2 is at LEAST 3x faster than v1 for INFO
emit, and below-min v2 is at LEAST 100x
faster than below-min v1 (target: fast
enough for CASC / SAT-COMP background use)
dependencies 4 imports · 0 importers
imports: nx_kernel_v2.nxnx_clock.nxnx_log.nxnx_log_v2.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 18 | const N_BENCH: i64 = 5000 |
functions
| 16 | func nx_log_v2_render_int(buf: *u8, off: i64, v: i64) -> i64; called by 1: t3_perf_emit |
| 21 | func t1_emit_correctness() -> nx_int |
| 32 | func t2_below_min_fast() -> nx_int |
| 52 | func t3_perf_emit() -> nx_int called by 1: main calls 5: nx_log_globalnx_clock_monotonic_nsnx_log_emitnx_log_v2_emitnx_log_v2_render_int |
| 115 | func nx_log_v2_render_int(buf: *u8, off: i64, v: i64) -> i64 |
| 136 | func main() -> nx_exit |