Communitygithub.com

cli-anything-nsight-graphics

Windows 优先的 CLI 工具集,用于 Nsight Graphics 捕获、GPU Trace 汇总及 ngfx-replay 分析

cli-anything-nsight-graphics 是什么?

此技能提供了一个命令行工具集,用于编排 NVIDIA Nsight Graphics 的官方活动。它支持检测已安装的 Nsight 二进制文件和兼容模式,在 Nsight 下分离启动应用程序,或附加到正在运行的进程上。其核心功能包括触发图形捕获、OpenGL 帧调试器捕获、GPU Trace 捕获(支持自动导出和汇总),以及通过 ngfx-replay 分析已有的 .ngfx-capture 文件。该工具还提供清晰的兼容性诊断,并支持生成 C++ 捕获代码。对于开发者而言,此技能特别适用于在 Windows 上对 GPU 工作负载进行性能分析和调试,能够通过单条命令自动完成 GPU Trace 数据的捕获、导出和汇总,快速定位性能瓶颈。它支持 JSON 输出以便集成到自动化工作流中,是配合 AI Agent(如 Claude Code、Cursor、Codex)使用的理想选择。

兼容平台~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
  • 触发图形捕获或 OpenGL 帧调试器捕获
  • 触发 GPU Trace 捕获、自动导出和汇总
  • 通过 ngfx-replay 分析已有的 .ngfx-capture 文件
  • 为 .ngfx-gputrace 输入提供清晰的兼容性诊断
  • 触发生成 C++ 捕获

命令

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

帧捕获

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

生成 C++ 捕获

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 文档说明其输入应为图形捕获文件。.ngfx-gputrace 输入可用于清晰的诊断,但在 Nsight Graphics 2026.1.0 上可能报告 Invalid file header;对于导出的 GPU Trace 表格分析,请使用 gpu-trace summarize。
  • replay analyze 使用官方的 ngfx-replay 元数据/日志/截图/性能报告输出;它不是类似 RenderDoc 的着色器、管线、纹理或资源检查器。
  • 帧/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

>-

相关技能