基于 vibecoding 完善了之前的项目,现在开源分享:https://github.com/15525730080/client_perf
这是一个全平台开源性能测试工具,一台电脑同时支持 Windows、Android、iOS、HarmonyOS 四个平台的性能数据采集,对比分析。
任务列表 / Task List

创建任务 / Create Task

PC 应用性能报告 / PC App Performance Report

iOS App 性能报告 / iOS App Performance Report

打标签 & 对比选中内容 / Add Labels & Compare Selected Content



┌─────────────────────────────────────────────────────────────────────────────┐
│ Web UI (浏览器 / Browser) │
│ http://localhost:8080 │
└──────────────────────────────┬──────────────────────────────────────────────┘
│ HTTP / REST API
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ FastAPI 服务层 / Service Layer (api.py) │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │
│ │ 设备管理 │ │ 任务管理 │ │ 对比分析 │ │ 标签管理 │ │ Excel 报告导出 │ │
│ │Device Mgt│ │Task Mgmt │ │Comparison│ │ Labels │ │ Excel Export │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────────┬─────────┘ │
└───────┼────────────┼────────────┼────────────┼────────────────┼─────────────┘
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ 核心采集层 / Collection Layer (core/) │
│ │
│ ┌─────────────┐ ┌──────────────┐ ┌────────────┐ ┌──────────────────┐ │
│ │ pc_tools │ │android_tools │ │ ios_tools │ │ harmony_tools │ │
│ │ │ │ │ │ │ │ │ │
│ │ psutil │ │ adbutils │ │ go-ios │ │ hdc │ │
│ │ pynvml │ │ │ │ py-ios-dev │ │ │ │
│ │ PresentMon │ │ │ │ │ │ │ │
│ └──────┬──────┘ └──────┬───────┘ └─────┬──────┘ └────────┬─────────┘ │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ ┌──────────────────────────────────────────────────────────────────────┐ │
│ │ Monitor 采集循环 / Collection Loop (monitor.py) │ │
│ │ CPU → 内存 → FPS → GPU → 线程数 → 句柄数 → 磁盘IO → 网络IO → 截图 │ │
│ └──────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘
新增平台或新指标,只需继承 Monitor 基类,实现对应采集函数即可。
支持与 AI Agent Skill 联动,可通过自然语言指令触发性能采集、生成报告等操作,方便集成到自动化测试流程中。
pip install client-perf
client-perf
Web 界面默认 http://localhost:8080
如果在做客户端性能测试或性能对比,有类似需求可以试试这个项目,提 issue 或 star 都欢迎。
项目地址:https://github.com/15525730080/client_perf
项目结构清晰,模块化设计,新增平台或新指标只需继承 Monitor 基类,实现对应采集函数即可。
支持与 AI Agent Skill 联动,可通过自然语言指令触发性能采集、生成报告等操作,方便集成到自动化测试流程中。
pip install client-perf
client-perf
Web 界面默认 http://localhost:8000
如果在做客户端性能测试或性能对比,有类似需求可以试试这个项目,提 issue 或 star 都欢迎。
项目地址:https://github.com/15525730080/client_perf