hz-perfetto-debug

hz-perfetto-debug is a skill for Claude Code from meta-quest/agentic-tools. It costs 50 tokens per session (2,749 once invoked), scanned A, original, Apache-2.0.

A guide for investigating virtual-reality performance on Meta Quest using Perfetto, a tool that records detailed timing traces from a device. It examines frame timing, processor and graphics bottlenecks, rendering work, and heat-related slowdowns.

In plain words
What is it for?
Use it to investigate dropped frames, stuttering, high drawing workload, processor or graphics limits, thread conflicts, missed display deadlines, and thermal throttling.
Why use it?
When a frame takes too long, the headset may show a repeated or reprojected image, causing visible stutter and discomfort. Traces help connect that symptom to the work or device condition causing it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agentic-tools plugin — 29 skills, 1 hook, 1 MCP server shipped together

Good fit Use it to investigate dropped frames, stuttering, high drawing workload, processor or…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meta-quest/agentic-tools/hz-perfetto-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add meta-quest/agentic-tools --skill hz-perfetto-debug
Clone the repo
git clone --depth 1 https://github.com/meta-quest/agentic-tools

Made for: Claude Code.

Or install agentic-tools, the plugin that ships this one along with the rest of its 29 skills, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hz-perfetto-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/meta-quest/agentic-tools/hz-perfetto-debug.svg)](https://agentmods.dev/skills/meta-quest/agentic-tools/hz-perfetto-debug)
Your own site
<a href="https://agentmods.dev/skills/meta-quest/agentic-tools/hz-perfetto-debug"><img src="https://agentmods.dev/badge/skills/meta-quest/agentic-tools/hz-perfetto-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.02749
Opus 5 $0.00025 $0.01375
Sonnet 5 $0.00010 $0.00550
Haiku 4.5 $0.00005 $0.00275

Measured 7d ago against content hash 377766655f77, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

hz-perfetto-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hz-perfetto-debug/SKILL.md · 293 lines

How it starts

The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Perfetto Debug Skill

When to Use

Use this skill when investigating VR performance issues on Meta Quest devices:

  • Frame drops, jank, or stuttering
  • CPU or GPU bottlenecks
  • Render pass overhead and GPU utilization
  • Thermal throttling and clock frequency changes
  • Frame timing variance and missed vsync deadlines
  • Thread contention and synchronization issues
  • High draw call counts or overdraw

VR Frame Time Targets

These are the hard deadlines for each refresh rate. If a frame exceeds its target, the compositor must reproject or the user sees a stale frame.

Refresh Rate Frame Time Budget Notes
120 Hz 8.3 ms Supported on Quest 2, Quest 3, Quest 3S
90 Hz 11.1 ms Supported on Quest 2, Quest Pro, Quest 3, Quest 3S
72 Hz 13.9 ms Default on all Quest devices
60 Hz 16.7 ms Media apps only (Quest 2); interactive apps must use 72 Hz+

Missing a frame deadline by even 1 ms causes a stale frame (reprojection). Stale frames above 10% of total frames indicate a serious performance problem.

metavr Setup

Perfetto tracing is powered by the metavr CLI. Invoke via npx — no install required:

npx -y metavr --version

Examples below use the bare metavr command for brevity; if it is not installed globally, replace metavr with npx -y metavr. Connect your Quest via USB with developer mode enabled before capturing traces.

Quick Start Workflow

1. Capture a Trace

# Capture a 5-second trace from the currently running VR app
metavr perf capture

# Specify duration and target app
metavr perf capture --duration 10000 --app com.example.myapp

# Enable GPU render stage tracing for detailed pass analysis
metavr perf capture --gpu-render-stage

# Enable XR runtime metrics
metavr perf capture --xr-runtime

# Custom output name
metavr perf capture -o my-session-name

The capture auto-detects the foreground VR app if --app is not specified. CPU scheduling and GPU metrics tracing are enabled by default. The trace is pulled to your local machine automatically.

Read the full file on GitHub · 293 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 293 lines · 50 tokens per session scan A 377766655f77

Subscribe to this mod's changes

hz-perfetto-debug is a skill published in the GitHub repository meta-quest/agentic-tools (189 stars, last pushed 16d ago), licensed Apache-2.0. It adds 50 tokens to every session and 2,749 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gamedev-physics

Use when working with a game engine's physics — rigid bodies, colliders, collision layers and masks, character controllers, joints, forces versus impulses, raycasts and shapecasts, or when a simulation is unstable (tunnelling, jitter, missed overlaps). Covers the Godot, Unity and Unreal equivalents. NOT rendering or…

ericrisco/rsc-harness · 102 tokens

godot-mcp

Use the complete Godot development loop from the godot-mcp CLI: discover the live engine API, build and edit in the open editor, run and play the game, observe state, debug failures, fix them in place, and verify the result. Use when the task involves creating or modifying a Godot project, testing game behavior…

regiellis/godot-mcp-go · 0 tokens

doris-debug-cloud

Use for Doris storage-compute separation (cloud mode) issues: meta-service latency, cache miss storms, object store throughput, and shared-nothing config conflicts in compute groups.

apache/doris-skills · 40 tokens

doris-debug-data-lake

Use for Doris external catalog issues: Hive/Iceberg/Paimon/Hudi query failures, metadata refresh, filesystem S3/HDFS connectivity, external MV rewrite misses.

apache/doris-skills · 41 tokens

doris-debug-node

Use for Doris FE/BE OOM, crash, or false Alive. BE: MemTrackerLimiter lines in be.WARNING; FE: JVM heap / jstack. Distinguish heartbeat Alive from query/brpc serving health.

apache/doris-skills · 50 tokens

doris-debug-query

Use for Apache Doris slow/hanging/timeout queries. Covers FE planner (Nereids timeout), BE Profile bottlenecks, and Exchange WaitForData / brpc E1008 on port 8060. Session vars: enableprofile, querytimeout, nereidstimeoutsecond.

apache/doris-skills · 62 tokens