ソース情報
- リポジトリ
- google/torq
- ソースの最終更新活動
- 2026年6月11日 20:38
- 検出された SKILL.md の言語
- 英語
- スター
- 13
- フォーク
- 6
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/google/torq --skill torqコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | torq |
| description | Capture a perfetto or simpleperf trace using the Torq CLI. |
This skill allows capturing performance traces using the Torq CLI tool.
which torq).You can capture either a Perfetto trace (default) or a Simpleperf trace. This is specified via the
-p/--profiler flag. By default perfetto is selected and the -p flag doesn't need to be specified.
The next step is to specify the trace duration, which needs to be expressed in milliseconds, via the
-d/--duration flag. Setting an explicit duration is optional. If no --duration flag is passed,
then the trace will continue indefinitely until Ctrl+C is pressed to stop the trace collection.
[!Note] In the case that Ctrl+C doesn't kill the torq process (might be running in the background), then you can run
ps aux | grep torqto get the PID for the torq process and send a SIGINT to it.
By default the trace files are opened in the browser, given it is almost always the desired behavior.
In the case you don't want the files to be opened in the browser, you can specify --no-ui to skip
this.
[!Note] But always prefer to launch the trace files in the browser, only use
--no-uiif it is intentionally mentioned.
The trace files will be saved in the current directory (or the directory specified by
-o/--out-dir flag) with a default prefix (e.g., trace-...).
Here are some examples of how to capture traces with torq:
# Capture a Perfetto trace for 20 seconds
torq -d 20000
# Run an indefinite trace (make sure to press Ctrl+C to cancel trace session)
torq
# Skip opening the trace in the browser
torq -d 20000 --no-ui
# Capture a simpleperf profile for 10 seconds
torq -p simpleperf -d 10000
# Store trace in /tmp/perfetto-traces
torq -d 5000 -o /tmp/perfetto-traces
With torq it is possible to trigger different system events while capturing a trace. One can specify
the event via the -e/--event flag. You can see the supported events via torq profiler --help
command.
Here are some examples on how to do this:
# Capture a boottime trace
torq -d 60000 -e boot
# Capture a user switch trace
torq -d 10000 -e user-switch --from-user 11 --to-user 12
# Capture an app startup in the trace
torq -d 4000 -e app-startup -a com.google.android.apps.maps
To better understand all the alternatives of the profiler subcommand in torq, you can always
run:
torq profiler --help