native-app-performance by steipete/agent-scripts
npx skills add https://github.com/steipete/agent-scripts --skill native-app-performance目标:通过 xctrace 记录时间性能分析器,提取样本,符号化,并在不打开 Instruments 的情况下提出热点。
# 自行启动应用,然后附加
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --attach <pid>
2. 记录时间性能分析器(启动):
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --launch -- /path/App.app/Contents/MacOS/App
3. 提取时间样本:
scripts/extract_time_samples.py --trace /tmp/App.trace --output /tmp/time-sample.xml
4. 获取用于符号化的加载地址:
# 当应用正在运行时
vmmap <pid> | rg -m1 "__TEXT" -n
5. 符号化 + 排序热点:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
scripts/top_hotspots.py --samples /tmp/time-sample.xml \
--binary /path/App.app/Contents/MacOS/App \
--load-address 0x100000000 --top 30
--launch,优先使用直接的二进制文件路径。xcrun xctrace help record 和 xcrun xctrace help export 显示正确的标志。scripts/record_time_profiler.sh:通过附加或启动进行记录。scripts/extract_time_samples.py:从跟踪文件中导出时间样本 XML。scripts/top_hotspots.py:符号化并排序应用顶层帧。vmmap 的运行时 __TEXT 加载地址。--binary 路径;符号必须与跟踪文件匹配。atos 进行了符号化,则无需打开 Instruments。每周安装次数
75
代码仓库
GitHub 星标数
2.3K
首次出现时间
2026年1月23日
安全审计
已安装于
codex65
opencode65
gemini-cli57
cursor55
claude-code55
github-copilot49
Goal: record Time Profiler via xctrace, extract samples, symbolicate, and propose hotspots without opening Instruments.
# Start app yourself, then attach
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --attach <pid>
2. Record Time Profiler (launch):
xcrun xctrace record --template 'Time Profiler' --time-limit 90s --output /tmp/App.trace --launch -- /path/App.app/Contents/MacOS/App
3. Extract time samples:
scripts/extract_time_samples.py --trace /tmp/App.trace --output /tmp/time-sample.xml
4. Get load address for symbolication:
# While app is running
vmmap <pid> | rg -m1 "__TEXT" -n
5. Symbolicate + rank hotspots:
scripts/top_hotspots.py --samples /tmp/time-sample.xml \
--binary /path/App.app/Contents/MacOS/App \
--load-address 0x100000000 --top 30
--launch.xcrun xctrace help record and xcrun xctrace help export show correct flags.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.__TEXT load address from vmmap.--binary path; symbols must match the trace.atos.Weekly Installs
75
Repository
GitHub Stars
2.3K
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex65
opencode65
gemini-cli57
cursor55
claude-code55
github-copilot49
Swift Actor 线程安全持久化:构建离线优先应用的编译器强制安全数据层
1,700 周安装
Datadog自动化监控:通过Rube MCP与Composio实现指标、日志、仪表板管理
69 周安装
Intercom自动化指南:通过Rube MCP与Composio实现客户支持对话管理
69 周安装
二进制初步分析指南:使用ReVa工具快速识别恶意软件与逆向工程
69 周安装
PrivateInvestigator 道德人员查找工具 | 公开数据调查、反向搜索与背景研究
69 周安装
TorchTitan:PyTorch原生分布式大语言模型预训练平台,支持4D并行与H100 GPU加速
69 周安装
screenshot 截图技能:跨平台桌面截图工具,支持macOS/Linux权限管理与多模式捕获
69 周安装