Capture Unreal Engine traces, inspect Trace Store files, keep Unreal Insights GUI open, and export/summarize timing/counter data.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-anything-unrealinsights-96543c379623 ,按照其中的说明把「cli-anything-unrealinsights」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this CLI when you need agent-friendly access to Unreal Insights trace capture and exporter workflows on Windows.
UnrealInsights.exeUNREALINSIGHTS_EXEUNREAL_TRACE_SERVER_EXEUNREALINSIGHTS_TRACEcli-anything-unrealinsights --json backend info
To use a source-built engine's matching UnrealInsights.exe:
cli-anything-unrealinsights --json backend ensure-insights `
--engine-root 'D:\code\D5\d5render-ue5_3'
This first looks for Engine\Binaries\Win64\UnrealInsights.exe under the
specified engine root, then builds it with that engine's Build.bat if needed.
cli-anything-unrealinsights trace set D:\captures\session.utrace
cli-anything-unrealinsights --json trace info
cli-anything-unrealinsights --json store info
cli-anything-unrealinsights --json store list --live-only
cli-anything-unrealinsights --json store latest --set-current
cli-anything-unrealinsights --json capture run `
--project 'D:\Projects\MyGame\MyGame.uproject' `
--engine-root 'D:\Program Files\Epic Games\UE_5.5' `
--output-trace D:\captures\boot.utrace `
--channels "default,bookmark" `
--exec-cmd "Trace.Bookmark BootStart" `
--wait --timeout 300
You can also keep using the explicit form:
cli-anything-unrealinsights --json capture run `
'D:\Program Files\Epic Games\UE_5.5\Engine\Binaries\Win64\UnrealEditor.exe' `
--target-arg 'D:\Projects\MyGame\MyGame.uproject'
cli-anything-unrealinsights --json capture start `
--project 'D:\Projects\MyGame\MyGame.uproject' `
--engine-root 'D:\Program Files\Epic Games\UE_5.5' `
--output-trace D:\captures\live_session.utrace
cli-anything-unrealinsights --json capture status
cli-anything-unrealinsights --json capture snapshot D:\captures\live_snapshot.utrace
cli-anything-unrealinsights --json capture stop
This is the preferred flow when an agent needs to start profiling now and stop or snapshot later in a follow-up turn.
If a tracked capture session is still running, capture start now requires
--replace so the previous process is stopped before a new one is launched.
$env:UNREALINSIGHTS_LIVE_EXEC='ushell-wrapper --pid {pid} --cmd "{cmd}"'
cli-anything-unrealinsights --json live processes
cli-anything-unrealinsights --json live trace-status --pid 1234
cli-anything-unrealinsights --json live bookmark --pid 1234 "BeforeExport"
cli-anything-unrealinsights --json live stop-trace --pid 1234
Live command delivery requires UNREALINSIGHTS_LIVE_EXEC or --backend-command.
If no backend is configured, live commands return a JSON error and do not claim
success. live stop-trace stops trace collection without killing the UE process;
capture stop still terminates the harness-launched process tree.
cli-anything-unrealinsights --json gui status
cli-anything-unrealinsights --json gui open --trace D:\captures\session.utrace
cli-anything-unrealinsights --json gui open-latest
GUI commands omit -NoUI and -AutoQuit so Unreal Insights remains open.
cli-anything-unrealinsights --json -t D:\captures\session.utrace export threads D:\out\threads.csv
cli-anything-unrealinsights --json -t D:\captures\session.utrace export timer-stats D:\out\stats.csv --region=EXPORT_CAPTURE
cli-anything-unrealinsights --json -t D:\captures\session.utrace export counter-values D:\out\counter_values.csv --counter=*
Prefer equals-form wildcard filters such as --timers=* and --counter=*.
The harness passes simple values to UnrealInsights without inner quotes so
wildcards remain usable inside -ExecOnAnalysisCompleteCmd.
cli-anything-unrealinsights --json -t D:\captures\session.utrace batch run-rsp D:\out\exports.rsp
cli-anything-unrealinsights --json -t D:\captures\session.utrace analyze summary --out D:\out\summary
cli-anything-unrealinsights --json analyze summary --skip-export --out D:\out\summary
The summary reports top timers, focused GameThread/RenderThread/RHIThread hotspots, wait/task-related timers, counter peaks, and uncovered domains for future Memory/Network/Slate/Asset/Cooking analysis.
analyze summary also returns export_status and
summary.diagnostics.export_status_counts so agents can distinguish successful
exports from trace/filter combinations that completed but produced no rows.
--json for agent workflows.trace_pathexec_commandoutput_filesoutput_statusstatus_messagelog_pathexit_codewarningserrorssucceededcommandtrace_pathtrace_existstrace_sizepid or exit_codepidrunningtarget_exeproject_pathtrace_pathtrace_sizestarted_atstore_dirtrace_counttraceslatestpidlive_commandbackendexit_codesucceededexportsexport_statussummary.top_timerssummary.focus_threadssummary.wait_timerssummary.counter_peakssummary.diagnosticssummary.uncovered_domainsTreat output_status == "ok" as a materialized export. Treat
output_status == "no_output" as an empty trace/filter result, not a backend
crash. Use exporter_error, process_failed, and timed_out for retry or
debugging decisions.
capture stop is a best-effort stop of the harness-launched process tree.capture snapshot is a best-effort filesystem snapshot of the active trace.example_trace.decomp.utrace sample
when present; the binary trace is not vendored.