[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112681":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":13,"forks30d":13,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":13,"starSnapshotCount":13,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},112681,"pulseguard-rt","samertall\u002Fpulseguard-rt","samertall","Offline QNX SDP 8.0 trace analyzer with dispatch latency insights, mutex-wait signals, interactive dashboards, and CI regression checks.","",null,"Python",80,0,59,1,14,18,5,50.8,"MIT License",false,"main",true,[25,26,27,28,29,30],"embedded-systems","performance-analysis","python","qnx","real-time-systems","trace-analysis","2026-11-10 09:20:07","2026-11-23 13:48:08","# PulseGuard RT\n\n![PulseGuard RT dashboard preview showing dispatch latency, screening metrics, and a QNX trace histogram](docs\u002Fimages\u002Fdashboard-preview.png)\n\n*Illustrative dashboard preview based on the bundled **synthetic QNX-format trace**. This is not a measured QNX device capture.*\n\n**See what the scheduler is telling you.** An offline, zero-dependency performance intelligence tool for **QNX SDP 8.0** developers, written by Samer Tallauze for the QNX Global Hackathon (November–December 2026).\n\n**[Run the 60-second demo](#start-in-under-one-minute--no-qnx-sdk-needed-for-demo)** · **[Explore the capabilities](#capabilities)** · **[Follow the QNX codelab](docs\u002FCODELAB.md)** · **[Watch the demo](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=HXBaztZVK-s)**\n\n**Category:** Developer Tooling & Host Tools · **License:** MIT · **Host:** Linux \u002F macOS \u002F Windows, Python 3.10+ · **Target analyzed:** QNX OS 8.0 (QEMU, Raspberry Pi 5, or supported hardware)\n\nPulseGuard turns the documented, textual output of QNX's `traceprinter` into an interactive local report about **thread dispatch delay** and **mutex-wait candidates**. It works even without target access once a trace text file is exported. It does not depend on cloud services, third-party telemetry, external Python dependencies, or proprietary parsers.\n\n## Why this exists\n\nIn an embedded real-time system, a task can be ready to run but wait for a CPU. When that delay grows, an application may have less headroom to meet its own response-time objectives. Raw kernel event streams are accurate but cumbersome to inspect. PulseGuard reduces the time between *capturing scheduling evidence* and *finding which threads deserve investigation*.\n\n### Capabilities\n\n| Feature | What it actually does |\n| --- | --- |\n| QNX trace ingestion | Reads QNX 8.0 `traceprinter` text (`t:0x... CPU:... THREAD:...`), cycle frequency, CPU metadata, and thread IDs |\n| Dispatch latency | Pairs `THREADY` and `THRUNNING`, reports p50\u002Fp95\u002Fp99\u002Fmax and per-thread breakdown |\n| Mutex blocking signals | Pairs `THMUTEX` with the next `THREADY` for the same thread, without asserting priority inversion |\n| CPU execution timeline | Visualizes observed thread-running spans without inventing CPU-idle time |\n| Interactive thresholds | Explore samples exceeding a configurable dispatch-latency screening budget |\n| Performance regression gate | Compare two JSON reports by p95, optionally fail CI if regression exceeds a percentage |\n| Portable offline dashboard | Self-contained HTML (no JavaScript libraries, CDN, API requests, or tracking) |\n| JSON \u002F CLI exports | Scriptable machine-readable output and exit codes (`0` pass, `1` error, `2` threshold failure) |\n\n> **Important:** A scheduler dispatch threshold breach is **not** necessarily an application deadline miss. Mutex waiting alone does **not** prove priority inversion. This is a diagnostic aid, **not** a medical, automotive safety, or functional-safety certification tool.\n\n## Start in under one minute — no QNX SDK needed for demo\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fsamertall\u002Fpulseguard-rt.git\ncd pulseguard-rt\npython3 -m pulseguard demo --output-dir demo-output\n```\n\nOpen `demo-output\u002Freport.html` in any modern browser. The synthetic demo contains 67 QNX-format kernel events, two logical CPUs, and 32 ready-to-running dispatches; it is explicitly marked **SYNTHETIC DATA** and does *not* represent an actual QNX device capture.\n\nRun the example directly:\n\n```bash\npython3 -m pulseguard analyze examples\u002Fsynthetic_qnx8_trace.txt \\\n  --budget-us 250 --json demo-output\u002Freport.json --html demo-output\u002Freport.html\npython3 -m unittest discover -s tests -v\n```\n\nOptional installation, if using standard Python packaging:\n\n```bash\npython3 -m pip install -e .\npulseguard --help\n```\n\n## Real QNX 8.0 capture → host analysis\n\n**QNX-specific evidence:** `pulseguard\u002Fparser.py` recognizes the `TRACE_CYCLES_PER_SEC` header and native `t:0x... CPU:... THREAD:THREADY\u002FTHRUNNING\u002FTHMUTEX pid:X tid:Y` event syntax produced by QNX SDP 8.0 `traceprinter`. `pulseguard\u002Fanalysis.py` reconstructs QNX kernel thread-state transitions. These are not generic Linux `perf` or POSIX log events.\n\n1. Install **QNX SDP 8.0** using [QNX Everywhere](https:\u002F\u002Fqnx.software\u002Fen\u002Fdevelopers\u002Fget-started\u002Fqnx-everywhere) and follow the [SDP 8.0 quick start](https:\u002F\u002Fwww.qnx.com\u002Fdevelopers\u002Fdocs\u002F8.0\u002Fcom.qnx.doc.qnxsdp.quickstart\u002Ftopic\u002Fabout.html) to boot a supported QNX 8.0 target or QEMU VM.\n2. On that **QNX target**, as root, record a short capture while your workload is active (requires the instrumented `procnto`, provided with QNX 8.0):\n\n   ```sh\n   tracelogger -s 10 -w -f \u002Fdev\u002Fshmem\u002Fpulseguard.kev\n   ```\n\n3. On **QNX or an SDP-equipped host** (Windows\u002FLinux), format the proprietary `.kev` using QNX's `traceprinter` utility:\n\n   ```sh\n   traceprinter -f \u002Fpath\u002Fto\u002Fpulseguard.kev -o pulseguard.txt\n   ```\n\n4. Copy `pulseguard.txt` to your ordinary Linux\u002FmacOS\u002FWindows computer and analyze:\n\n   ```bash\n   python3 -m pulseguard analyze pulseguard.txt \\\n     --budget-us 250 \\\n     --json output\u002Freport.json \\\n     --html output\u002Freport.html\n   ```\n\n5. Open the HTML. Use its threshold explorer, thread table, slowest dispatch list, and source-line references to inspect the capture. For an automated check:\n\n   ```bash\n   python3 -m pulseguard analyze pulseguard.txt --budget-us 250 --strict\n   python3 -m pulseguard compare output\u002Fbaseline.json output\u002Freport.json \\\n     --max-p95-regression-pct 10\n   ```\n\n   `--strict` exits 2 if any **observed dispatch** exceeds the configured threshold. `compare` exits 2 if the candidate's p95 exceeds the allowed relative regression. Neither claims to certify real-time deadlines.\n\nThe capture commands above use the exact `-s`, `-w`, `-f`, and `-o` options documented for QNX SDP 8.0; capture on QNX requires appropriate privileges and target access.\n\n### Supported input and interpretation\n\n- Only **text** output from `traceprinter`, not raw `.kev` binary input. The default QNX output layout and wrapped `pid`\u002F`tid` continuation lines are understood. Custom `traceprinter -p` layouts may be incompatible.\n- Converts CPU clock cycles to elapsed microseconds using `TRACE_CYCLES_PER_SEC`; if missing, provide `--frequency` in cycles\u002Fsec. Output header declares QNX release when available.\n- Dispatch latency is a complete `THREADY` → `THRUNNING` pair for the same `(PID,TID)`; blocking events cancel stale pending ready-state observations. Incomplete intervals are excluded; temporal precision depends on the trace.\n- Mutex duration is `THMUTEX` → `THREADY`, which may be influenced by tracing and scheduling. It does not establish who owned a mutex.\n- One sample begins when a thread becomes ready and ends when it first runs; other event types are not used to fabricate a sample.\n- Timeline spans are conservative visualizations between observed state changes, truncated at known transitions rather than claiming total CPU utilization.\n- Reports may contain warnings for low sample counts, out-of-order timestamps, missing trace metadata, or truncated interactive sample counts.\n- All JSON aggregate metrics cover the full in-memory capture. HTML interaction is limited to 50,000 dispatches for responsiveness; this restriction is flagged in warnings when reached.\n\n### Requirements and reproducibility\n\n| Component | Version \u002F target | Toolchain |\n| --- | --- | --- |\n| Capture system | QNX OS \u002F QNX SDP **8.0** on QEMU, Raspberry Pi 5, or other supported hardware | QNX native `tracelogger`, instrumented `procnto` |\n| Event formatter | QNX SDP **8.0** tool (on QNX or host) | QNX `traceprinter` |\n| PulseGuard host | Linux, macOS, Windows | CPython **3.10+**, standard library only |\n| Demo target | Linux host with Python 3.10+ | No QNX license\u002Fhardware needed for synthetic fixture |\n\n**Testing status:** parser, analysis, CLI, and HTML-generation unit tests run on the Linux host. Actual QNX 8.0 capture should be validated by a participant with an installed QNX Everywhere environment before claiming real target testing. The included synthetic fixture is suitable for reproducible host-tool demonstration only.\n\n## Architecture\n\n```text\nQNX 8.0 target \u002F QEMU\n   tracelogger → .kev\n   traceprinter → text\n                    ↓\n      parser.py (QNX headers & thread events)\n                    ↓\n      analysis.py (latencies, waits, warnings)\n                    ↓\n       ┌────────────┴────────────┐\n   CLI \u002F JSON              Offline HTML\n   CI comparison           interactive report\n```\n\n## Tutorial \u002F codelab\n\nRead [the guided QNX 8.0 tracing codelab](docs\u002FCODELAB.md) for a step-by-step capture-to-diagnosis workflow, interpretation questions, and expected outcomes. It is free and included in this repository.\n\n## Official references\n\n- [QNX SDP 8.0 traceprinter utility](https:\u002F\u002Fqnx.com\u002Fdevelopers\u002Fdocs\u002F8.0\u002Fcom.qnx.doc.neutrino.utilities\u002Ftopic\u002Ft\u002Ftraceprinter.html)\n- [QNX SDP 8.0 tracelogger utility](https:\u002F\u002Fwww.qnx.com\u002Fdevelopers\u002Fdocs\u002F8.0\u002Fcom.qnx.doc.neutrino.utilities\u002Ftopic\u002Ft\u002Ftracelogger.html)\n- [QNX System Analysis Toolkit: reading traceprinter output](https:\u002F\u002Fqnx.com\u002Fdevelopers\u002Fdocs\u002F8.0\u002Fcom.qnx.doc.sat\u002Ftopic\u002Fdatainterpretation_Using_traceprinter.html)\n- [QNX Global Hackathon rules](https:\u002F\u002Fqnx.devpost.com\u002Frules)\n\n## Project status \u002F roadmap\n\n**Implemented now:** trace parsing, latency\u002Fcontended-wait analysis, test suite, offline interactive dashboard, JSON export, CLI threshold check, p95 regression comparison, and reproducible synthetic example.\n\n**Future opportunities (not claimed as delivered):** live target capture and deployment helper, richer message-passing correlation, trace loss detection, priority inversion correlation using thread priorities, large-file streaming, and actual QNX 8.0 target verification.\n\n## Attribution and licensing\n\nOriginal implementation and user interface © 2026 Samer Tallauze · [samertall.com](https:\u002F\u002Fsamertall.com) · [MIT License](LICENSE). No QNX proprietary SDK files are redistributed. QNX documentation and products belong to their respective owners; QNX is used descriptively to identify the target platform.\n","PulseGuard RT 是一款面向 QNX SDP 8.0 嵌入式实时系统的离线跟踪分析工具，用于从 traceprinter 文本日志中提取调度延迟与互斥锁等待信号等关键性能指标。其核心功能包括：零依赖解析 QNX 8.0 调度事件、计算线程级 dispatch latency（p50\u002Fp95\u002Fp99）、识别 mutex-wait 潜在线索、生成轻量级交互式 HTML 仪表盘，并支持 CI 环境下的回归比对与阈值门控。所有分析均在本地完成，无需目标设备、网络连接或外部库。适用于 QNX 应用开发、实时性调优及嵌入式系统性能诊断场景。",2,"2026-11-24 04:43:50","CREATED_QUERY"]