client-perf 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- client_perf-0.1.0/LICENSE +21 -0
- client_perf-0.1.0/MANIFEST.in +3 -0
- client_perf-0.1.0/PKG-INFO +131 -0
- client_perf-0.1.0/README.md +83 -0
- client_perf-0.1.0/app/__init__.py +0 -0
- client_perf-0.1.0/app/api.py +1099 -0
- client_perf-0.1.0/app/comparison.py +248 -0
- client_perf-0.1.0/app/core/__init__.py +0 -0
- client_perf-0.1.0/app/core/android_tools.py +847 -0
- client_perf-0.1.0/app/core/device_manager.py +286 -0
- client_perf-0.1.0/app/core/harmony_tools.py +796 -0
- client_perf-0.1.0/app/core/ios_tools.py +1201 -0
- client_perf-0.1.0/app/core/monitor.py +84 -0
- client_perf-0.1.0/app/core/pc_tools.py +503 -0
- client_perf-0.1.0/app/db.py +507 -0
- client_perf-0.1.0/app/log.py +16 -0
- client_perf-0.1.0/app/task_handle.py +136 -0
- client_perf-0.1.0/app/util.py +128 -0
- client_perf-0.1.0/client_perf.egg-info/PKG-INFO +131 -0
- client_perf-0.1.0/client_perf.egg-info/SOURCES.txt +26 -0
- client_perf-0.1.0/client_perf.egg-info/dependency_links.txt +1 -0
- client_perf-0.1.0/client_perf.egg-info/entry_points.txt +2 -0
- client_perf-0.1.0/client_perf.egg-info/requires.txt +8 -0
- client_perf-0.1.0/client_perf.egg-info/top_level.txt +1 -0
- client_perf-0.1.0/pyproject.toml +32 -0
- client_perf-0.1.0/setup.cfg +4 -0
- client_perf-0.1.0/setup.py +40 -0
- client_perf-0.1.0/test_result/index.html +2409 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 client-perf
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: client-perf
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: 客户端性能采集与分析工具
|
|
5
|
+
Home-page: https://github.com/yourusername/client-perf
|
|
6
|
+
Author: Your Name
|
|
7
|
+
Author-email: Your Name <your.email@example.com>
|
|
8
|
+
License: MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2026 client-perf
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
|
|
30
|
+
Classifier: Programming Language :: Python :: 3
|
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
32
|
+
Classifier: Operating System :: OS Independent
|
|
33
|
+
Requires-Python: >=3.7
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: fastapi
|
|
37
|
+
Requires-Dist: uvicorn
|
|
38
|
+
Requires-Dist: psutil
|
|
39
|
+
Requires-Dist: pandas
|
|
40
|
+
Requires-Dist: openpyxl
|
|
41
|
+
Requires-Dist: aiosqlite
|
|
42
|
+
Requires-Dist: apscheduler
|
|
43
|
+
Requires-Dist: pydantic
|
|
44
|
+
Dynamic: author
|
|
45
|
+
Dynamic: home-page
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
Dynamic: requires-python
|
|
48
|
+
|
|
49
|
+
# client-perf
|
|
50
|
+
|
|
51
|
+
客户端性能采集与分析工具,用于监控和分析应用程序的性能指标。
|
|
52
|
+
|
|
53
|
+
## 功能特性
|
|
54
|
+
|
|
55
|
+
- **多维度性能指标采集**:CPU、内存、FPS、GPU、线程数、句柄数、磁盘IO、网络IO
|
|
56
|
+
- **任务管理**:创建、查看、对比性能采集任务
|
|
57
|
+
- **标签对比**:对任务中的特定时间段进行标记和对比
|
|
58
|
+
- **数据可视化**:实时展示性能数据曲线
|
|
59
|
+
- **Excel 导出**:导出性能报告和原始数据
|
|
60
|
+
- **API 接口**:提供 RESTful API 用于集成
|
|
61
|
+
|
|
62
|
+
## 安装
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pip install client-perf
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## 快速开始
|
|
69
|
+
|
|
70
|
+
### 启动服务
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# 默认端口 8080
|
|
74
|
+
client-perf
|
|
75
|
+
|
|
76
|
+
# 自定义端口
|
|
77
|
+
client-perf --port 9090
|
|
78
|
+
|
|
79
|
+
# 开发模式(热重载)
|
|
80
|
+
client-perf --reload
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 访问界面
|
|
84
|
+
|
|
85
|
+
启动服务后,在浏览器中访问:
|
|
86
|
+
```
|
|
87
|
+
http://localhost:8080
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## 项目结构
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
client-perf/
|
|
94
|
+
├── app/ # 核心应用代码
|
|
95
|
+
│ ├── api.py # API 接口定义
|
|
96
|
+
│ ├── comparison.py # 对比功能实现
|
|
97
|
+
│ ├── core/ # 核心功能模块
|
|
98
|
+
│ └── utils/ # 工具函数
|
|
99
|
+
├── test_result/ # 前端界面
|
|
100
|
+
├── main.py # 启动入口
|
|
101
|
+
├── setup.py # 打包配置
|
|
102
|
+
└── README.md # 项目说明
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## API 接口
|
|
106
|
+
|
|
107
|
+
- `GET /get_devices/` - 获取设备列表
|
|
108
|
+
- `GET /get_all_task/` - 获取所有任务
|
|
109
|
+
- `POST /create_task/` - 创建新任务
|
|
110
|
+
- `GET /get_task_data/{task_id}/` - 获取任务数据
|
|
111
|
+
- `POST /export_excel/` - 导出任务数据为 Excel
|
|
112
|
+
- `POST /create_comparison/` - 创建任务对比
|
|
113
|
+
- `POST /export_comparison_excel/` - 导出对比结果为 Excel
|
|
114
|
+
- `GET /get_labels/{task_id}/` - 获取任务标签
|
|
115
|
+
- `POST /create_label_comparison/` - 创建标签对比
|
|
116
|
+
- `POST /export_label_comparison_excel/` - 导出标签对比结果为 Excel
|
|
117
|
+
|
|
118
|
+
## 依赖
|
|
119
|
+
|
|
120
|
+
- fastapi
|
|
121
|
+
- uvicorn
|
|
122
|
+
- psutil
|
|
123
|
+
- pandas
|
|
124
|
+
- openpyxl
|
|
125
|
+
- aiosqlite
|
|
126
|
+
- apscheduler
|
|
127
|
+
- pydantic
|
|
128
|
+
|
|
129
|
+
## 许可证
|
|
130
|
+
|
|
131
|
+
MIT License
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# client-perf
|
|
2
|
+
|
|
3
|
+
客户端性能采集与分析工具,用于监控和分析应用程序的性能指标。
|
|
4
|
+
|
|
5
|
+
## 功能特性
|
|
6
|
+
|
|
7
|
+
- **多维度性能指标采集**:CPU、内存、FPS、GPU、线程数、句柄数、磁盘IO、网络IO
|
|
8
|
+
- **任务管理**:创建、查看、对比性能采集任务
|
|
9
|
+
- **标签对比**:对任务中的特定时间段进行标记和对比
|
|
10
|
+
- **数据可视化**:实时展示性能数据曲线
|
|
11
|
+
- **Excel 导出**:导出性能报告和原始数据
|
|
12
|
+
- **API 接口**:提供 RESTful API 用于集成
|
|
13
|
+
|
|
14
|
+
## 安装
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install client-perf
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 快速开始
|
|
21
|
+
|
|
22
|
+
### 启动服务
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# 默认端口 8080
|
|
26
|
+
client-perf
|
|
27
|
+
|
|
28
|
+
# 自定义端口
|
|
29
|
+
client-perf --port 9090
|
|
30
|
+
|
|
31
|
+
# 开发模式(热重载)
|
|
32
|
+
client-perf --reload
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 访问界面
|
|
36
|
+
|
|
37
|
+
启动服务后,在浏览器中访问:
|
|
38
|
+
```
|
|
39
|
+
http://localhost:8080
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 项目结构
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
client-perf/
|
|
46
|
+
├── app/ # 核心应用代码
|
|
47
|
+
│ ├── api.py # API 接口定义
|
|
48
|
+
│ ├── comparison.py # 对比功能实现
|
|
49
|
+
│ ├── core/ # 核心功能模块
|
|
50
|
+
│ └── utils/ # 工具函数
|
|
51
|
+
├── test_result/ # 前端界面
|
|
52
|
+
├── main.py # 启动入口
|
|
53
|
+
├── setup.py # 打包配置
|
|
54
|
+
└── README.md # 项目说明
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## API 接口
|
|
58
|
+
|
|
59
|
+
- `GET /get_devices/` - 获取设备列表
|
|
60
|
+
- `GET /get_all_task/` - 获取所有任务
|
|
61
|
+
- `POST /create_task/` - 创建新任务
|
|
62
|
+
- `GET /get_task_data/{task_id}/` - 获取任务数据
|
|
63
|
+
- `POST /export_excel/` - 导出任务数据为 Excel
|
|
64
|
+
- `POST /create_comparison/` - 创建任务对比
|
|
65
|
+
- `POST /export_comparison_excel/` - 导出对比结果为 Excel
|
|
66
|
+
- `GET /get_labels/{task_id}/` - 获取任务标签
|
|
67
|
+
- `POST /create_label_comparison/` - 创建标签对比
|
|
68
|
+
- `POST /export_label_comparison_excel/` - 导出标签对比结果为 Excel
|
|
69
|
+
|
|
70
|
+
## 依赖
|
|
71
|
+
|
|
72
|
+
- fastapi
|
|
73
|
+
- uvicorn
|
|
74
|
+
- psutil
|
|
75
|
+
- pandas
|
|
76
|
+
- openpyxl
|
|
77
|
+
- aiosqlite
|
|
78
|
+
- apscheduler
|
|
79
|
+
- pydantic
|
|
80
|
+
|
|
81
|
+
## 许可证
|
|
82
|
+
|
|
83
|
+
MIT License
|
|
File without changes
|