Kernel traces are walls of text. Finding a priority inversion or a deadline miss by reading traceprinter output is slow, error-prone work — the bug hides in hundreds of thousands of lines.

TraceLens turns QNX traceprinter output into interactive per-CPU and per-thread timelines, plus a deterministic anomaly analyst that flags what matters: priority inversions, deadline misses, interrupt storms, mutex hotspots, and excessive context switching. No model calls, no backend — the whole analyzer runs offline in the browser.

Everything in the demo is real. I wrote a small C load generator (rtload) using real QNX APIs — threads at different priorities, a priority-inheriting mutex, QNX message passing — compiled it with qcc from QNX SDP 8.0, ran it under tracelogger inside QEMU, and exported the trace with traceprinter. The trace in the repo (564,847 lines, 37.6 MB) is that exact capture. On it, TraceLens finds the planted bugs: one priority inversion (a thread waited 618 µs for a mutex held by a lower-priority thread) and three deadline misses (18.44–18.67 ms runs against an 11.13 ms period), with zero false positives from stalls. The analyzer is covered by 41 automated checks against synthetic and real traces.

How to try it: open index.html (no build step, no server), load the included real trace window or paste your own traceprinter output, and click a finding to jump the timeline to it. To reproduce the QNX side: build rtload with make CPULIST=x86_64 (QNX SDP 8.0), boot the QEMU image, run rtload under tracelogger, and export with traceprinter — the README documents every step.

Built with QNX 8.0 (SDP, qcc, tracelogger, traceprinter), C, QEMU, and vanilla HTML/CSS/JavaScript.

Built With

Share this project:

Updates

Submission history