Communitygithub.com

cli-anything-nsight-graphics

Windows 優先的 CLI 工具,用於 NVIDIA Nsight Graphics 的截圖捕捉、GPU Trace 摘要及 ngfx-replay 分析。

cli-anything-nsight-graphics 是什麼?

此技能提供一個完整的命令列介面,用以操作 NVIDIA Nsight Graphics 的核心功能。它讓開發者能在 Windows 環境下,透過 CLI 執行應用程式的圖形捕捉、GPU 軌跡記錄與重播分析,無需手動操作 GUI。支援的功能包括:探測已安裝的 Nsight 二進位檔與相容模式、以分離模式啟動應用程式、附加至執行中程式、觸發 Graphics Capture 或 OpenGL Frame Debugger 捕捉、執行 GPU Trace 捕捉並自動匯出摘要,以及透過 ngfx-replay 分析 .ngfx-capture 檔案。此工具特別適合 CI/CD 管線或自動化效能檢測,能產生結構化的分析報告(含中繼資料、日誌、瓶頸提示與效能分類)。主要支援 Windows 平台,指令採用 `cli-anything-nsight-graphics` 前綴,並提供 `--json` 輸出以便程式化整合。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-nsight-graphics

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Nsight Graphics CLI 技能

官方 NVIDIA Nsight Graphics 活動的命令列協調。

功能

  • 探測已安裝的 Nsight 二進位檔與相容模式
  • 以分離模式啟動應用程式並置於 Nsight 管理下
  • 附加 Nsight 至執行中的 PID
  • 觸發 Graphics Capture 或 OpenGL Frame Debugger 捕捉
  • 觸發 GPU Trace 捕捉、自動匯出與摘要
  • 透過 ngfx-replay 分析現有的 .ngfx-capture 檔案
  • 報告 .ngfx-gputrace 輸入的清晰相容性診斷
  • 觸發 Generate C++ Capture

指令

doctor

cli-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

launch

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

frame capture

cli-anything-nsight-graphics --output-dir D:\captures frame capture ^
  --exe "C:\Path\To\App.exe" ^
  --wait-frames 10

GPU Trace

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

Generate C++ Capture

cli-anything-nsight-graphics --output-dir D:\cpp cpp capture ^
  --exe "C:\Path\To\App.exe" ^
  --wait-seconds 5

Agent 備註

  • 優先使用 doctor info 來探索可用的相容模式。
  • 當存在多個 Nsight Graphics 版本時,使用 doctor versions 列出已偵測到的安裝。
  • 使用 --nsight-path 強制指定特定的安裝目錄或 ngfx.exe。
  • 使用 --json 進行程式化工作流程。
  • 針對一步到位的效能分類,偏好使用 gpu-trace capture --auto-export --summarize。摘要包含匯出表格清單、度量清單、幀預算分類、工作負載分類、吞吐量排名、瓶頸提示,以及空白事件/狀態表格的警告。
  • 當輸入是現有的 .ngfx-capture 檔案時,使用 replay analyze。若未指定分析開關,它會匯出中繼資料、日誌、捕捉的日誌錯誤以及重播效能報告,然後加入結構化的 analysis.highlights / analysis.warnings。
  • ngfx-replay 將其輸入文件記錄為 Graphics Capture 檔案。.ngfx-gputrace 輸入會被接受以進行明確診斷,但在 Nsight Graphics 2026.1.0 上可能報告 Invalid file header;請改用 gpu-trace summarize 進行匯出的 GPU Trace 表格分析。
  • replay analyze 使用官方的 ngfx-replay 中繼資料/日誌/螢幕截圖/效能報告輸出;它不是 RenderDoc 風格的著色器、管線、紋理或資源檢查器。
  • Frame/GPU/C++ 捕捉指令需要透過 --exe 指定啟動目標,或使用預先配置的根層級 --project。
  • 如果全域的 cli-anything-nsight-graphics 指令指向舊的工作目錄,請從 nsight-graphics/agent-harness 重新安裝,使用 python -m pip install -e .。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

相關技能