Syntax highlighting and analysis tools for Intel Omni-Path (OPA) and CN5000 HFI statistics output.
Features
Syntax highlighting for .hfi1stats / .hfi1 files — errors, warnings, and traffic counters are colour-coded for quick scanning
Hover tooltips — hover over any counter name to see its description
Right-click commands (available when file language is hfi1stats):
Command
What it does
Delete All Zero-Value Lines
Removes clutter — keeps only non-zero counters
Calculate Average Packet Size
(TxFlitVL0 × 8 bytes) / TxPktVL0
Congestion Report (TxWait / RnrNak / PktDrop)
Shows stall time, MB lost, stall % for TxWait and TxFlowStall separately, plus combined health indicator
GBytes Transferred (TX + RX)
Converts DcXmitFlits / DcRcvFlits to GB / TB
Usage
Open any hfi1stats output file. VS Code will auto-detect the language by extension (.hfi1stats, .hfi1) or filename (hfi1stats). Right-click in the editor to access commands.
Counter Descriptions
All counter descriptions are stored in counters_compiled.json — edit that file to add or update descriptions without touching extension code.