()
| 187 | |
| 188 | |
| 189 | def nsys_version() -> str: |
| 190 | try: |
| 191 | out = subprocess.run(["nsys", "--version"], capture_output=True, text=True, timeout=30).stdout.strip() |
| 192 | return out.splitlines()[0] if out else "?" |
| 193 | except Exception: |
| 194 | return "?" |
| 195 | |
| 196 | |
| 197 | def _looks_like_header(line: str) -> bool: |