Back to WaitLens
examples/synthetic-comparison.html
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'">
<title>WaitLens · QNX IPC waits</title><style>
:root{color-scheme:light}*{box-sizing:border-box}body{margin:0;background:#f1f5f8;color:#193042;font:16px/1.6 system-ui,sans-serif}
main{max-width:1120px;margin:auto;padding:40px 24px}header{border-top:6px solid #087f80;padding:24px 0}h1{font-size:42px;letter-spacing:-1.5px;margin:0}
h2{margin-top:36px}h3{margin:28px 0 10px}.muted,.hash{color:#526371}.hash{font-size:12px;overflow-wrap:anywhere}.tag{display:inline-block;background:#dcecee;padding:4px 12px;border-radius:20px}
.warning{background:#fff2cf;border-left:4px solid #936300;padding:14px 18px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}
.card{background:white;padding:18px;border:1px solid #ccd9df;border-radius:10px}.card strong{display:block;font-size:32px}.card span{color:#526371}
.scroll{overflow-x:auto}table{min-width:640px;width:100%;border-collapse:collapse;background:#fff}th{text-align:left;background:#e1ecef}th,td{padding:12px 14px;border-bottom:1px solid #d9e3e8;overflow-wrap:anywhere}
.finding{background:#dcefee;border-left:6px solid #087f80;padding:18px 24px;margin:24px 0}.finding p{margin:8px 0 0}nav{display:flex;gap:20px;flex-wrap:wrap}section{scroll-margin-top:20px}dt{font-weight:700}dd{margin:0 0 12px}a:focus-visible,summary:focus-visible,.scroll:focus-visible{outline:3px solid #087f80;outline-offset:4px}@media print{body{background:white}main{padding:0}.scroll{overflow:visible}table{min-width:0;font-size:11px}th,td{padding:5px}details{display:block}}
td{max-width:340px}th{overflow-wrap:normal}th:first-child{min-width:110px}th:nth-child(3){min-width:100px}td:first-child{white-space:nowrap}details{margin-top:24px}summary{cursor:pointer;font-weight:600}a{color:#006c70}footer{border-top:1px solid #ccd9df;margin-top:40px;padding-top:16px}
@media(max-width:600px){.cards{grid-template-columns:repeat(2,1fr)}main{padding:20px 14px}h1{font-size:34px}}
</style></head><body><main><header><p class="muted">OFFLINE DEVELOPER REPORT</p><h1>WaitLens</h1>
<p>Follow QNX IPC waits from a thread to its destination process.</p></header><p class="warning">pidin queries processes sequentially; this is not an atomic snapshot. Process-level cycle candidates do not prove deadlock. Destination threads and timing guarantees cannot be inferred. PID/TID reuse can affect comparisons.</p><p class="tag">Source labels: synthetic</p><aside class="finding" aria-label="Observation"><strong>What this observation shows</strong><p>1 thread(s) observed SEND to REPLY at the same destination process.</p></aside><nav aria-label="Report sections"><a href="#changes">Changes</a> <a href="#before">Before snapshot</a> <a href="#after">After snapshot</a></nav><section id="changes"><h2>Observed changes</h2><p>Read left to right: before → after. Source lines refer to the original input files.</p><div class="scroll" tabindex="0" role="region" aria-label="Scrollable data table"><table><thead><tr><th scope="col">PID:TID</th><th scope="col">Name before → after</th><th scope="col">Change</th><th scope="col">Before state / blocked</th><th scope="col">After state / blocked</th><th scope="col">Lines before → after</th></tr></thead><tbody><tr><td>101:1</td><td>./waitlens_probe → ./waitlens_probe</td><td>changed</td><td>SEND / 100</td><td>REPLY / 100</td><td>3 → 3</td></tr></tbody></table></div></section><section id="before"><h2>send.txt</h2><p class="tag">Input: synthetic</p><p>Input provenance is supplied by the caller, not independently verified.</p><div class="cards"><div class="card"><strong>2</strong><span>Processes</span></div><div class="card"><strong>2</strong><span>Threads</span></div><div class="card"><strong>1</strong><span>IPC waits</span></div><div class="card"><strong>0</strong><span>Zombies</span></div></div><h3>IPC waits · thread to process</h3><div class="scroll" tabindex="0" role="region" aria-label="Scrollable data table"><table><thead><tr><th scope="col">Source PID:TID</th><th scope="col">State</th><th scope="col">Destination PID</th><th scope="col">Coverage</th><th scope="col">Source line</th></tr></thead><tbody><tr><td>101:1</td><td>SEND</td><td>100</td><td>observed</td><td>3</td></tr></tbody></table></div><h3>Process cycle candidates</h3><p>None observed</p><p>Multiple server threads can make process cycles harmless. Investigate with a kernel trace.</p><details><summary>All parsed threads</summary><div class="scroll" tabindex="0" role="region" aria-label="Scrollable data table"><table><thead><tr><th scope="col">PID:TID</th><th scope="col">Name</th><th scope="col">Priority</th><th scope="col">State</th><th scope="col">Blocked</th><th scope="col">Source line</th></tr></thead><tbody><tr><td>100:1</td><td>./waitlens_probe</td><td>10r</td><td>NANOSLEEP</td><td></td><td>2</td></tr><tr><td>101:1</td><td>./waitlens_probe</td><td>10r</td><td>SEND</td><td>100</td><td>3</td></tr></tbody></table></div></details><p class="hash">Normalized input SHA-256: 7b43dca32e364c14863f9cd897f381188504a279d3f0bc404f44e9e1551995cb</p></section><section id="after"><h2>reply.txt</h2><p class="tag">Input: synthetic</p><p>Input provenance is supplied by the caller, not independently verified.</p><div class="cards"><div class="card"><strong>2</strong><span>Processes</span></div><div class="card"><strong>2</strong><span>Threads</span></div><div class="card"><strong>1</strong><span>IPC waits</span></div><div class="card"><strong>0</strong><span>Zombies</span></div></div><h3>IPC waits · thread to process</h3><div class="scroll" tabindex="0" role="region" aria-label="Scrollable data table"><table><thead><tr><th scope="col">Source PID:TID</th><th scope="col">State</th><th scope="col">Destination PID</th><th scope="col">Coverage</th><th scope="col">Source line</th></tr></thead><tbody><tr><td>101:1</td><td>REPLY</td><td>100</td><td>observed</td><td>3</td></tr></tbody></table></div><h3>Process cycle candidates</h3><p>None observed</p><p>Multiple server threads can make process cycles harmless. Investigate with a kernel trace.</p><details><summary>All parsed threads</summary><div class="scroll" tabindex="0" role="region" aria-label="Scrollable data table"><table><thead><tr><th scope="col">PID:TID</th><th scope="col">Name</th><th scope="col">Priority</th><th scope="col">State</th><th scope="col">Blocked</th><th scope="col">Source line</th></tr></thead><tbody><tr><td>100:1</td><td>./waitlens_probe</td><td>10r</td><td>NANOSLEEP</td><td></td><td>2</td></tr><tr><td>101:1</td><td>./waitlens_probe</td><td>10r</td><td>REPLY</td><td>100</td><td>3</td></tr></tbody></table></div></details><p class="hash">Normalized input SHA-256: eca51830e1ee9499b54923c8ecbfd760ef018c0784d8e840d1c9c4a9b161f036</p></section><section id="read"><h2>Read the evidence</h2><dl>
<dt>SEND</dt><dd>The client is waiting for its message to be received.</dd>
<dt>REPLY</dt><dd>The message has been received; the client is waiting for a reply.</dd>
<dt>RECEIVE</dt><dd>The server is waiting on a local channel. Its blocked value is not a process edge.</dd>
</dl><p>Next: inspect the referenced source rows, check destination coverage, and recapture if a phase is missing.
Use a kernel trace to investigate persistence or scheduling. Two samples do not measure wait duration.</p></section>
<footer>No external assets, scripts, telemetry, or network requests.
<a href="https://www.qnx.com/developers/docs/8.0/com.qnx.doc.neutrino.utilities/topic/p/pidin.html">QNX pidin reference</a>
</footer></main></body></html>