# Send Native App Performance to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "native-app-performance",
    "name": "Native App Performance",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/steipete/native-app-performance",
    "canonicalUrl": "https://clawhub.ai/steipete/native-app-performance",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/native-app-performance",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=native-app-performance",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/extract_time_samples.py",
      "scripts/record_time_profiler.sh",
      "scripts/top_hotspots.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "native-app-performance",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T00:08:57.888Z",
      "expiresAt": "2026-05-13T00:08:57.888Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=native-app-performance",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=native-app-performance",
        "contentDisposition": "attachment; filename=\"native-app-performance-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "native-app-performance"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/native-app-performance"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/native-app-performance",
    "downloadUrl": "https://openagent3.xyz/downloads/native-app-performance",
    "agentUrl": "https://openagent3.xyz/skills/native-app-performance/agent",
    "manifestUrl": "https://openagent3.xyz/skills/native-app-performance/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/native-app-performance/agent.md"
  }
}
```
## Documentation

### Native App Performance (CLI-only)

Goal: record Time Profiler via xctrace, extract samples, symbolicate, and propose hotspots without opening Instruments.

### Quick start (CLI)

Record Time Profiler (attach):

# Start app yourself, then attach
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --attach <pid>

Record Time Profiler (launch):

xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --launch -- /path/App.app/Contents/MacOS/App

Extract time samples:

scripts/extract_time_samples.py --trace /tmp/App.trace --output /tmp/time-sample.xml

Get load address for symbolication:

# While app is running
vmmap <pid> | rg -m1 "__TEXT" -n

Symbolicate + rank hotspots:

scripts/top_hotspots.py --samples /tmp/time-sample.xml \\
  --binary /path/App.app/Contents/MacOS/App \\
  --load-address 0x100000000 --top 30

### Workflow notes

Always confirm you’re profiling the correct binary (local build vs /Applications). Prefer direct binary path for --launch.
Ensure you trigger the slow path during capture (menu open/close, refresh, etc.).
If stacks are empty, capture longer or avoid idle sections.
xcrun xctrace help record and xcrun xctrace help export show correct flags.

### Included scripts

scripts/record_time_profiler.sh: record via attach or launch.
scripts/extract_time_samples.py: export time-sample XML from a trace.
scripts/top_hotspots.py: symbolicate and rank top app frames.

### Gotchas

ASLR means you must use the runtime __TEXT load address from vmmap.
If using a new build, update the --binary path; symbols must match the trace.
CLI-only flow: no need to open Instruments if stacks are symbolicated via atos.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: steipete
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-06T00:08:57.888Z
- Expires at: 2026-05-13T00:08:57.888Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/native-app-performance)
- [Send to Agent page](https://openagent3.xyz/skills/native-app-performance/agent)
- [JSON manifest](https://openagent3.xyz/skills/native-app-performance/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/native-app-performance/agent.md)
- [Download page](https://openagent3.xyz/downloads/native-app-performance)