Skip to content

lw-byte/gamePerfAgent

Repository files navigation

gamePerfAgent

Android游戏性能分析工具集,使用Perfetto MCP工具分析游戏trace文件,输出帧率、CPU、GPU、线程等综合性能报告。

目录结构

gamePerfAgent/
├── gamePerfAgent-overview skill.md    # 游戏性能分析Skill定义
├── game_perf_analysis_report.md       # 分析报告示例
├── analyze_perfetto.py                # 分析脚本
└── prompts.txt                        # 提示词

Skills

gamePerfAgent-overview

游戏性能分析Skill,使用Perfetto MCP工具分析Android游戏trace文件。

触发词: 分析游戏性能, perfetto游戏分析, 帧率分析, 游戏性能报告

主要功能:

  • 帧率表现分析 (平均帧率、1% LOW帧、最大帧间隔)
  • GPU性能分析 (GPU等待时长、eglSwapBuffers)
  • CPU核间分布及频率分析
  • 关键线程D状态分析
  • 游戏进程Binder执行分析
  • Unity/Unreal引擎关键线程分析

使用方式:

用户:分析 android-202646-232648-sgame.pftrace 王者荣耀进程性能
助手:调用skill(gamePerfAgent-overview, {
  trace_path: "D:\\traces\\android-202646-232648-sgame.pftrace",
  game_name: "王者荣耀"
})

分析维度

维度 说明
帧率 基于eglSwapBuffers计算帧间隔,分析P1/P5/P50/P95/P99分布
GPU GPU Completion等待时长、GPU执行效率
CPU 大核/小核/超级大核频率分布、关键线程CPU占用
D状态 线程Uninterruptible Sleep时长分布
Binder 游戏进程Binder通信耗时统计
引擎线程 Unity/Unreal主逻辑线程、渲染线程、Job线程

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors