客户端性能采集与分析工具
Project description
client-perf
客户端性能采集与分析工具,用于监控和分析应用程序的性能指标。
实例
任务列表
创建任务
PC应用性能报告
IOSApp性能报告
打标签&对比选中内容
对比结果列表
功能特性
- 多维度性能指标采集:CPU、内存、FPS、GPU、线程数、句柄数、磁盘IO、网络IO
- 任务管理:创建、查看、对比性能采集任务
- 标签对比:对任务中的特定时间段进行标记和对比
- 数据可视化:实时展示性能数据曲线
- Excel 导出:导出性能报告和原始数据
- API 接口:提供 RESTful API 用于集成
安装
pip install client-perf
快速开始
启动服务
# 默认端口 8080
client-perf
# 自定义端口
client-perf --port 9090
# 开发模式(热重载)
client-perf --reload
访问界面
启动服务后,在浏览器中访问:
http://localhost:8080
项目结构
client-perf/
├── app/ # 核心应用代码
│ ├── api.py # API 接口定义
│ ├── comparison.py # 对比功能实现
│ ├── core/ # 核心功能模块
│ └── utils/ # 工具函数
├── test_result/ # 前端界面
├── main.py # 启动入口
├── setup.py # 打包配置
└── README.md # 项目说明
API 接口
GET /get_devices/- 获取设备列表GET /get_all_task/- 获取所有任务POST /create_task/- 创建新任务GET /get_task_data/{task_id}/- 获取任务数据POST /export_excel/- 导出任务数据为 ExcelPOST /create_comparison/- 创建任务对比POST /export_comparison_excel/- 导出对比结果为 ExcelGET /get_labels/{task_id}/- 获取任务标签POST /create_label_comparison/- 创建标签对比POST /export_label_comparison_excel/- 导出标签对比结果为 Excel
依赖
- fastapi
- uvicorn
- psutil
- pandas
- openpyxl
- aiosqlite
- apscheduler
- pydantic
许可证
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
client_perf-4.0.4.tar.gz
(32.3 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file client_perf-4.0.4.tar.gz.
File metadata
- Download URL: client_perf-4.0.4.tar.gz
- Upload date:
- Size: 32.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
875d226fb4cf46c54c28a4b31d584c4929586e5185dfe88c3929db88de9f498b
|
|
| MD5 |
9f8a0f4fff44a6e2637b4ef1def7a8b9
|
|
| BLAKE2b-256 |
90423fd00b4073e14b56e7be77829da622a4f43e0c30ad7d466fb1d076ff3bb4
|
File details
Details for the file client_perf-4.0.4-py3-none-any.whl.
File metadata
- Download URL: client_perf-4.0.4-py3-none-any.whl
- Upload date:
- Size: 32.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e5fc272c91748c8d3b2bc734346dc34fac6c49d85724ffd0b3c731c16888bc
|
|
| MD5 |
4324e58e11c3c874265be2978e100561
|
|
| BLAKE2b-256 |
fc9b342b35b13bd8cc1e4184ad46d563d5c91dc16456ce064f55f911b13a0ded
|