"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
NSIGHT_GRAPHICS.md – Software-Specific SOP
About Nsight Graphics
NVIDIA Nsight Graphics is a graphics debugging and profiling suite for Direct3D, Vulkan, OpenGL, and related GPU workflows. Depending on the installed version, it exposes either:
- a legacy unified CLI through
ngfx.exewith activity selection - a newer split tool layout including
ngfx-captureandngfx-replay
This harness targets the official command-line interfaces rather than the GUI.
V1 Coverage
Supported
- installation detection and capability probing
- listing detected installed versions
- detached app launch
- attach to a running PID with an activity
- Frame Debugger capture orchestration
- GPU Trace capture orchestration
- GPU Trace export summarization
- newest-complete GPU Trace export selection when an output root contains multiple exports
- Generate C++ Capture orchestration
- artifact discovery in output directories
Explicitly Deferred
- replay-helper public commands
- pipeline/resource/shader inspection APIs
- deep analysis comparable to RenderDoc's Python bindings
- full GUI-level replay investigation and editing workflows
Compatibility Notes
- On older Windows installs,
ngfx.exe --help-allis the primary source of truth for supported activities and activity options. - On newer installs,
ngfx-capture/ngfx-replaymay exist alongsidengfx. - This harness prefers capability detection over hard-coded version branching.
--nsight-pathcan explicitly select one installation when multiple versions coexist.
AI Operator Workflow
For one-step performance triage, the intended flow is:
- run
doctor versions - optionally pin a version with
--nsight-path - run
gpu-trace capture --auto-export --summarize - inspect the returned summary and the exported
.xlstables if you need more detail
If the chosen output root already contains older GPU Trace exports, the harness summarizes the newest complete export directory to avoid mixing stale tables from earlier runs.