Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-skills-1317b6e7b3a7 ,按照其中的说明把「cli-anything-nsight-graphics」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Command-line orchestration of official NVIDIA Nsight Graphics activities.
.ngfx-capture files through ngfx-replay.ngfx-gputrace inputscli-anything-nsight-graphics --json doctor info
cli-anything-nsight-graphics --json doctor versions
cli-anything-nsight-graphics --nsight-path "C:\Path\To\Nsight Graphics 2024.2\host\windows-desktop-nomad-x64" --json doctor info
cli-anything-nsight-graphics launch detached --activity "Graphics Capture" --exe "C:\Path\To\App.exe"
cli-anything-nsight-graphics launch attach --activity "Graphics Capture" --pid 12345
cli-anything-nsight-graphics --output-dir D:\captures frame capture ^
--exe "C:\Path\To\App.exe" ^
--wait-frames 10
cli-anything-nsight-graphics --output-dir D:\traces gpu-trace capture ^
--exe "C:\Path\To\App.exe" ^
--start-after-ms 1000 ^
--limit-to-frames 1 ^
--auto-export ^
--summarize
cli-anything-nsight-graphics gpu-trace summarize ^
--input-dir D:\traces
cli-anything-nsight-graphics --json replay analyze ^
--capture-file D:\captures\frame.ngfx-capture ^
--output-dir D:\analysis
cli-anything-nsight-graphics --output-dir D:\cpp cpp capture ^
--exe "C:\Path\To\App.exe" ^
--wait-seconds 5
doctor info first to discover the available compatibility mode.doctor versions to list detected installs when multiple Nsight Graphics versions exist.--nsight-path to force a specific install directory or ngfx.exe.--json for programmatic workflows.gpu-trace capture --auto-export --summarize for one-step performance
triage. The summary includes exported table inventory, metric inventory,
frame-budget classification, workload classification, throughput ranking,
bottleneck hints, and warnings for empty event/regime tables.replay analyze when the input is an existing .ngfx-capture file. With
no analysis switches it exports metadata, logs, captured log errors, and a
replay performance report, then adds structured analysis.highlights /
analysis.warnings.ngfx-replay documents its input as a Graphics Capture file. .ngfx-gputrace
inputs are accepted for clear diagnostics, but on Nsight Graphics 2026.1.0
they may report Invalid file header; use gpu-trace summarize for exported
GPU Trace table analysis.replay analyze uses official ngfx-replay metadata/log/screenshot/perf-report
outputs; it is not a RenderDoc-style shader, pipeline, texture, or resource inspector.--exe or a
preconfigured root-level --project.cli-anything-nsight-graphics command points at an old worktree,
reinstall from nsight-graphics/agent-harness with python -m pip install -e ..