client-perf 4.0.2__tar.gz → 4.0.4__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-4.0.2 → client_perf-4.0.4}/PKG-INFO +36 -4
- client_perf-4.0.2/client_perf.egg-info/PKG-INFO → client_perf-4.0.4/README.md +20 -23
- client_perf-4.0.4/client_perf/__pycache__/__init__.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/__pycache__/__main__.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/__pycache__/api.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/__pycache__/comparison.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/__pycache__/db.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/__pycache__/log.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/__pycache__/task_handle.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/__pycache__/util.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/core/__pycache__/__init__.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/core/__pycache__/android_tools.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/core/__pycache__/device_manager.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/core/__pycache__/harmony_tools.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/core/__pycache__/ios_tools.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/core/__pycache__/monitor.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf/core/__pycache__/pc_tools.cpython-310.pyc +0 -0
- client_perf-4.0.4/client_perf.egg-info/PKG-INFO +138 -0
- client_perf-4.0.4/client_perf.egg-info/SOURCES.txt +47 -0
- client_perf-4.0.4/client_perf.egg-info/requires.txt +11 -0
- client_perf-4.0.4/setup.py +75 -0
- client_perf-4.0.2/README.md +0 -83
- client_perf-4.0.2/client_perf.egg-info/SOURCES.txt +0 -31
- client_perf-4.0.2/setup.py +0 -31
- {client_perf-4.0.2 → client_perf-4.0.4}/LICENSE +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/MANIFEST.in +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/__init__.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/__main__.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/api.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/comparison.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/core/__init__.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/core/android_tools.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/core/device_manager.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/core/harmony_tools.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/core/ios_tools.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/core/monitor.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/core/pc_tools.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/db.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/log.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/task_handle.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf/util.py +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf.egg-info/dependency_links.txt +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf.egg-info/entry_points.txt +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/client_perf.egg-info/top_level.txt +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/setup.cfg +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/test_result/index.html +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/tool/PresentMon-1.8.0-x64.exe +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/tool/PresentMon-1.8.0-x86.exe +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/tool/go-ios-bin/go-ios-linux/ios-amd64 +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/tool/go-ios-bin/go-ios-linux/ios-arm64 +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/tool/go-ios-bin/go-ios-mac/ios +0 -0
- {client_perf-4.0.2 → client_perf-4.0.4}/tool/go-ios-bin/go-ios-win/ios.exe +0 -0
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: client-perf
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.4
|
|
4
4
|
Summary: 客户端性能采集与分析工具
|
|
5
5
|
Home-page: https://github.com/15525730080/client_perf
|
|
6
|
-
Author:
|
|
7
|
-
|
|
6
|
+
Author: 15525730080
|
|
7
|
+
License: MIT
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.7
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
+
Requires-Dist: fastapi>=0.111.0
|
|
15
|
+
Requires-Dist: uvicorn[standard]>=0.29.0
|
|
16
|
+
Requires-Dist: sqlalchemy[asyncio]>=2.0.0
|
|
17
|
+
Requires-Dist: aiosqlite>=0.20.0
|
|
18
|
+
Requires-Dist: py-ios-device>=2.0.0
|
|
19
|
+
Requires-Dist: adbutils>=2.8.0
|
|
20
|
+
Requires-Dist: psutil>=5.9.0
|
|
21
|
+
Requires-Dist: pynvml>=11.5.0
|
|
22
|
+
Requires-Dist: openpyxl>=3.1.0
|
|
23
|
+
Requires-Dist: apscheduler>=3.10.0
|
|
24
|
+
Requires-Dist: Pillow>=10.0.0
|
|
14
25
|
Dynamic: author
|
|
15
|
-
Dynamic: author-email
|
|
16
26
|
Dynamic: classifier
|
|
17
27
|
Dynamic: description
|
|
18
28
|
Dynamic: description-content-type
|
|
19
29
|
Dynamic: home-page
|
|
30
|
+
Dynamic: license
|
|
20
31
|
Dynamic: license-file
|
|
32
|
+
Dynamic: requires-dist
|
|
21
33
|
Dynamic: requires-python
|
|
22
34
|
Dynamic: summary
|
|
23
35
|
|
|
@@ -25,6 +37,26 @@ Dynamic: summary
|
|
|
25
37
|
|
|
26
38
|
客户端性能采集与分析工具,用于监控和分析应用程序的性能指标。
|
|
27
39
|
|
|
40
|
+
## 实例
|
|
41
|
+
|
|
42
|
+
**任务列表**
|
|
43
|
+
<img width="2558" height="780" alt="image" src="https://github.com/user-attachments/assets/4df2b086-15ec-4610-9f87-025c39b2eee0" />
|
|
44
|
+
**创建任务**
|
|
45
|
+
<img width="2552" height="1184" alt="image" src="https://github.com/user-attachments/assets/7e482cb0-cfe9-416e-a147-016ccd80c9af" />
|
|
46
|
+
**PC应用性能报告**
|
|
47
|
+
<img width="2533" height="1256" alt="image" src="https://github.com/user-attachments/assets/d74252df-4dec-4971-b905-52933db65e23" />
|
|
48
|
+
**IOSApp性能报告**
|
|
49
|
+
<img width="2548" height="1284" alt="image" src="https://github.com/user-attachments/assets/ab95909d-f954-4715-8072-8c96bee064bb" />
|
|
50
|
+
**打标签&对比选中内容**
|
|
51
|
+
<img width="2544" height="1245" alt="image" src="https://github.com/user-attachments/assets/811ccde7-2d79-47d3-ab2b-9424dbf50337" />
|
|
52
|
+
<img width="2557" height="743" alt="image" src="https://github.com/user-attachments/assets/727738fb-c726-492e-b23d-d8f1b9356fa0" />
|
|
53
|
+
<img width="2556" height="1269" alt="image" src="https://github.com/user-attachments/assets/b2d991e7-299d-4265-acfc-d948094d4976" />
|
|
54
|
+
**对比结果列表**
|
|
55
|
+
<img width="2560" height="608" alt="image" src="https://github.com/user-attachments/assets/94c63fa2-ea0a-4a9b-982c-05530ef8d7a3" />
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
28
60
|
## 功能特性
|
|
29
61
|
|
|
30
62
|
- **多维度性能指标采集**:CPU、内存、FPS、GPU、线程数、句柄数、磁盘IO、网络IO
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: client-perf
|
|
3
|
-
Version: 4.0.2
|
|
4
|
-
Summary: 客户端性能采集与分析工具
|
|
5
|
-
Home-page: https://github.com/15525730080/client_perf
|
|
6
|
-
Author: fanbozhou
|
|
7
|
-
Author-email: 15525730080@163.com
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.7
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
License-File: LICENSE
|
|
14
|
-
Dynamic: author
|
|
15
|
-
Dynamic: author-email
|
|
16
|
-
Dynamic: classifier
|
|
17
|
-
Dynamic: description
|
|
18
|
-
Dynamic: description-content-type
|
|
19
|
-
Dynamic: home-page
|
|
20
|
-
Dynamic: license-file
|
|
21
|
-
Dynamic: requires-python
|
|
22
|
-
Dynamic: summary
|
|
23
|
-
|
|
24
1
|
# client-perf
|
|
25
2
|
|
|
26
3
|
客户端性能采集与分析工具,用于监控和分析应用程序的性能指标。
|
|
27
4
|
|
|
5
|
+
## 实例
|
|
6
|
+
|
|
7
|
+
**任务列表**
|
|
8
|
+
<img width="2558" height="780" alt="image" src="https://github.com/user-attachments/assets/4df2b086-15ec-4610-9f87-025c39b2eee0" />
|
|
9
|
+
**创建任务**
|
|
10
|
+
<img width="2552" height="1184" alt="image" src="https://github.com/user-attachments/assets/7e482cb0-cfe9-416e-a147-016ccd80c9af" />
|
|
11
|
+
**PC应用性能报告**
|
|
12
|
+
<img width="2533" height="1256" alt="image" src="https://github.com/user-attachments/assets/d74252df-4dec-4971-b905-52933db65e23" />
|
|
13
|
+
**IOSApp性能报告**
|
|
14
|
+
<img width="2548" height="1284" alt="image" src="https://github.com/user-attachments/assets/ab95909d-f954-4715-8072-8c96bee064bb" />
|
|
15
|
+
**打标签&对比选中内容**
|
|
16
|
+
<img width="2544" height="1245" alt="image" src="https://github.com/user-attachments/assets/811ccde7-2d79-47d3-ab2b-9424dbf50337" />
|
|
17
|
+
<img width="2557" height="743" alt="image" src="https://github.com/user-attachments/assets/727738fb-c726-492e-b23d-d8f1b9356fa0" />
|
|
18
|
+
<img width="2556" height="1269" alt="image" src="https://github.com/user-attachments/assets/b2d991e7-299d-4265-acfc-d948094d4976" />
|
|
19
|
+
**对比结果列表**
|
|
20
|
+
<img width="2560" height="608" alt="image" src="https://github.com/user-attachments/assets/94c63fa2-ea0a-4a9b-982c-05530ef8d7a3" />
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
28
25
|
## 功能特性
|
|
29
26
|
|
|
30
27
|
- **多维度性能指标采集**:CPU、内存、FPS、GPU、线程数、句柄数、磁盘IO、网络IO
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: client-perf
|
|
3
|
+
Version: 4.0.4
|
|
4
|
+
Summary: 客户端性能采集与分析工具
|
|
5
|
+
Home-page: https://github.com/15525730080/client_perf
|
|
6
|
+
Author: 15525730080
|
|
7
|
+
License: MIT
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: fastapi>=0.111.0
|
|
15
|
+
Requires-Dist: uvicorn[standard]>=0.29.0
|
|
16
|
+
Requires-Dist: sqlalchemy[asyncio]>=2.0.0
|
|
17
|
+
Requires-Dist: aiosqlite>=0.20.0
|
|
18
|
+
Requires-Dist: py-ios-device>=2.0.0
|
|
19
|
+
Requires-Dist: adbutils>=2.8.0
|
|
20
|
+
Requires-Dist: psutil>=5.9.0
|
|
21
|
+
Requires-Dist: pynvml>=11.5.0
|
|
22
|
+
Requires-Dist: openpyxl>=3.1.0
|
|
23
|
+
Requires-Dist: apscheduler>=3.10.0
|
|
24
|
+
Requires-Dist: Pillow>=10.0.0
|
|
25
|
+
Dynamic: author
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: license
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
Dynamic: requires-dist
|
|
33
|
+
Dynamic: requires-python
|
|
34
|
+
Dynamic: summary
|
|
35
|
+
|
|
36
|
+
# client-perf
|
|
37
|
+
|
|
38
|
+
客户端性能采集与分析工具,用于监控和分析应用程序的性能指标。
|
|
39
|
+
|
|
40
|
+
## 实例
|
|
41
|
+
|
|
42
|
+
**任务列表**
|
|
43
|
+
<img width="2558" height="780" alt="image" src="https://github.com/user-attachments/assets/4df2b086-15ec-4610-9f87-025c39b2eee0" />
|
|
44
|
+
**创建任务**
|
|
45
|
+
<img width="2552" height="1184" alt="image" src="https://github.com/user-attachments/assets/7e482cb0-cfe9-416e-a147-016ccd80c9af" />
|
|
46
|
+
**PC应用性能报告**
|
|
47
|
+
<img width="2533" height="1256" alt="image" src="https://github.com/user-attachments/assets/d74252df-4dec-4971-b905-52933db65e23" />
|
|
48
|
+
**IOSApp性能报告**
|
|
49
|
+
<img width="2548" height="1284" alt="image" src="https://github.com/user-attachments/assets/ab95909d-f954-4715-8072-8c96bee064bb" />
|
|
50
|
+
**打标签&对比选中内容**
|
|
51
|
+
<img width="2544" height="1245" alt="image" src="https://github.com/user-attachments/assets/811ccde7-2d79-47d3-ab2b-9424dbf50337" />
|
|
52
|
+
<img width="2557" height="743" alt="image" src="https://github.com/user-attachments/assets/727738fb-c726-492e-b23d-d8f1b9356fa0" />
|
|
53
|
+
<img width="2556" height="1269" alt="image" src="https://github.com/user-attachments/assets/b2d991e7-299d-4265-acfc-d948094d4976" />
|
|
54
|
+
**对比结果列表**
|
|
55
|
+
<img width="2560" height="608" alt="image" src="https://github.com/user-attachments/assets/94c63fa2-ea0a-4a9b-982c-05530ef8d7a3" />
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## 功能特性
|
|
61
|
+
|
|
62
|
+
- **多维度性能指标采集**:CPU、内存、FPS、GPU、线程数、句柄数、磁盘IO、网络IO
|
|
63
|
+
- **任务管理**:创建、查看、对比性能采集任务
|
|
64
|
+
- **标签对比**:对任务中的特定时间段进行标记和对比
|
|
65
|
+
- **数据可视化**:实时展示性能数据曲线
|
|
66
|
+
- **Excel 导出**:导出性能报告和原始数据
|
|
67
|
+
- **API 接口**:提供 RESTful API 用于集成
|
|
68
|
+
|
|
69
|
+
## 安装
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pip install client-perf
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 快速开始
|
|
76
|
+
|
|
77
|
+
### 启动服务
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# 默认端口 8080
|
|
81
|
+
client-perf
|
|
82
|
+
|
|
83
|
+
# 自定义端口
|
|
84
|
+
client-perf --port 9090
|
|
85
|
+
|
|
86
|
+
# 开发模式(热重载)
|
|
87
|
+
client-perf --reload
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 访问界面
|
|
91
|
+
|
|
92
|
+
启动服务后,在浏览器中访问:
|
|
93
|
+
```
|
|
94
|
+
http://localhost:8080
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## 项目结构
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
client-perf/
|
|
101
|
+
├── app/ # 核心应用代码
|
|
102
|
+
│ ├── api.py # API 接口定义
|
|
103
|
+
│ ├── comparison.py # 对比功能实现
|
|
104
|
+
│ ├── core/ # 核心功能模块
|
|
105
|
+
│ └── utils/ # 工具函数
|
|
106
|
+
├── test_result/ # 前端界面
|
|
107
|
+
├── main.py # 启动入口
|
|
108
|
+
├── setup.py # 打包配置
|
|
109
|
+
└── README.md # 项目说明
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## API 接口
|
|
113
|
+
|
|
114
|
+
- `GET /get_devices/` - 获取设备列表
|
|
115
|
+
- `GET /get_all_task/` - 获取所有任务
|
|
116
|
+
- `POST /create_task/` - 创建新任务
|
|
117
|
+
- `GET /get_task_data/{task_id}/` - 获取任务数据
|
|
118
|
+
- `POST /export_excel/` - 导出任务数据为 Excel
|
|
119
|
+
- `POST /create_comparison/` - 创建任务对比
|
|
120
|
+
- `POST /export_comparison_excel/` - 导出对比结果为 Excel
|
|
121
|
+
- `GET /get_labels/{task_id}/` - 获取任务标签
|
|
122
|
+
- `POST /create_label_comparison/` - 创建标签对比
|
|
123
|
+
- `POST /export_label_comparison_excel/` - 导出标签对比结果为 Excel
|
|
124
|
+
|
|
125
|
+
## 依赖
|
|
126
|
+
|
|
127
|
+
- fastapi
|
|
128
|
+
- uvicorn
|
|
129
|
+
- psutil
|
|
130
|
+
- pandas
|
|
131
|
+
- openpyxl
|
|
132
|
+
- aiosqlite
|
|
133
|
+
- apscheduler
|
|
134
|
+
- pydantic
|
|
135
|
+
|
|
136
|
+
## 许可证
|
|
137
|
+
|
|
138
|
+
MIT License
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
setup.py
|
|
5
|
+
client_perf/__init__.py
|
|
6
|
+
client_perf/__main__.py
|
|
7
|
+
client_perf/api.py
|
|
8
|
+
client_perf/comparison.py
|
|
9
|
+
client_perf/db.py
|
|
10
|
+
client_perf/log.py
|
|
11
|
+
client_perf/task_handle.py
|
|
12
|
+
client_perf/util.py
|
|
13
|
+
client_perf.egg-info/PKG-INFO
|
|
14
|
+
client_perf.egg-info/SOURCES.txt
|
|
15
|
+
client_perf.egg-info/dependency_links.txt
|
|
16
|
+
client_perf.egg-info/entry_points.txt
|
|
17
|
+
client_perf.egg-info/requires.txt
|
|
18
|
+
client_perf.egg-info/top_level.txt
|
|
19
|
+
client_perf/__pycache__/__init__.cpython-310.pyc
|
|
20
|
+
client_perf/__pycache__/__main__.cpython-310.pyc
|
|
21
|
+
client_perf/__pycache__/api.cpython-310.pyc
|
|
22
|
+
client_perf/__pycache__/comparison.cpython-310.pyc
|
|
23
|
+
client_perf/__pycache__/db.cpython-310.pyc
|
|
24
|
+
client_perf/__pycache__/log.cpython-310.pyc
|
|
25
|
+
client_perf/__pycache__/task_handle.cpython-310.pyc
|
|
26
|
+
client_perf/__pycache__/util.cpython-310.pyc
|
|
27
|
+
client_perf/core/__init__.py
|
|
28
|
+
client_perf/core/android_tools.py
|
|
29
|
+
client_perf/core/device_manager.py
|
|
30
|
+
client_perf/core/harmony_tools.py
|
|
31
|
+
client_perf/core/ios_tools.py
|
|
32
|
+
client_perf/core/monitor.py
|
|
33
|
+
client_perf/core/pc_tools.py
|
|
34
|
+
client_perf/core/__pycache__/__init__.cpython-310.pyc
|
|
35
|
+
client_perf/core/__pycache__/android_tools.cpython-310.pyc
|
|
36
|
+
client_perf/core/__pycache__/device_manager.cpython-310.pyc
|
|
37
|
+
client_perf/core/__pycache__/harmony_tools.cpython-310.pyc
|
|
38
|
+
client_perf/core/__pycache__/ios_tools.cpython-310.pyc
|
|
39
|
+
client_perf/core/__pycache__/monitor.cpython-310.pyc
|
|
40
|
+
client_perf/core/__pycache__/pc_tools.cpython-310.pyc
|
|
41
|
+
test_result/index.html
|
|
42
|
+
tool/PresentMon-1.8.0-x64.exe
|
|
43
|
+
tool/PresentMon-1.8.0-x86.exe
|
|
44
|
+
tool/go-ios-bin/go-ios-linux/ios-amd64
|
|
45
|
+
tool/go-ios-bin/go-ios-linux/ios-arm64
|
|
46
|
+
tool/go-ios-bin/go-ios-mac/ios
|
|
47
|
+
tool/go-ios-bin/go-ios-win/ios.exe
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
def read_file(fname):
|
|
5
|
+
here = os.path.abspath(os.path.dirname(__file__))
|
|
6
|
+
try:
|
|
7
|
+
with open(os.path.join(here, fname), encoding="utf-8") as f:
|
|
8
|
+
return f.read()
|
|
9
|
+
except FileNotFoundError:
|
|
10
|
+
return "客户端性能采集与分析工具"
|
|
11
|
+
|
|
12
|
+
def read_requirements():
|
|
13
|
+
here = os.path.abspath(os.path.dirname(__file__))
|
|
14
|
+
req_path = os.path.join(here, "requirements.txt")
|
|
15
|
+
if not os.path.exists(req_path):
|
|
16
|
+
return []
|
|
17
|
+
with open(req_path, encoding="utf-8") as f:
|
|
18
|
+
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
|
|
19
|
+
|
|
20
|
+
# 核心:手动收集所有要打包的非Python文件(test_result + tool)
|
|
21
|
+
def collect_data_files():
|
|
22
|
+
data_files = []
|
|
23
|
+
# 遍历 test_result 目录
|
|
24
|
+
for root, dirs, files in os.walk("test_result"):
|
|
25
|
+
for file in files:
|
|
26
|
+
file_path = os.path.join(root, file)
|
|
27
|
+
# 安装路径:包目录下的 test_result
|
|
28
|
+
install_path = os.path.join("client_perf", "test_result", os.path.relpath(root, "test_result"))
|
|
29
|
+
data_files.append((install_path, [file_path]))
|
|
30
|
+
# 遍历 tool 目录
|
|
31
|
+
for root, dirs, files in os.walk("tool"):
|
|
32
|
+
for file in files:
|
|
33
|
+
file_path = os.path.join(root, file)
|
|
34
|
+
# 安装路径:包目录下的 tool
|
|
35
|
+
install_path = os.path.join("client_perf", "tool", os.path.relpath(root, "tool"))
|
|
36
|
+
data_files.append((install_path, [file_path]))
|
|
37
|
+
return data_files
|
|
38
|
+
|
|
39
|
+
setup(
|
|
40
|
+
name="client-perf",
|
|
41
|
+
version="4.0.4",
|
|
42
|
+
author="15525730080",
|
|
43
|
+
description="客户端性能采集与分析工具",
|
|
44
|
+
long_description=read_file("README.md"),
|
|
45
|
+
long_description_content_type="text/markdown",
|
|
46
|
+
url="https://github.com/15525730080/client_perf",
|
|
47
|
+
|
|
48
|
+
packages=find_packages(),
|
|
49
|
+
|
|
50
|
+
# 核心1:用 package_data 打包包内资源
|
|
51
|
+
package_data={
|
|
52
|
+
"client_perf": ["**/*"],
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
# 核心2:用 data_files 强制打包根目录的 test_result 和 tool
|
|
56
|
+
data_files=collect_data_files(),
|
|
57
|
+
|
|
58
|
+
include_package_data=True,
|
|
59
|
+
install_requires=read_requirements(),
|
|
60
|
+
|
|
61
|
+
# 启动入口(你自己改成真实的启动路径!)
|
|
62
|
+
entry_points={
|
|
63
|
+
"console_scripts": [
|
|
64
|
+
"client-perf=client_perf.__main__:main", # 示例:client_perf/main.py 里的 main 函数
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
python_requires=">=3.7",
|
|
69
|
+
license="MIT",
|
|
70
|
+
classifiers=[
|
|
71
|
+
"Programming Language :: Python :: 3",
|
|
72
|
+
"License :: OSI Approved :: MIT License",
|
|
73
|
+
"Operating System :: OS Independent",
|
|
74
|
+
],
|
|
75
|
+
)
|
client_perf-4.0.2/README.md
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
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
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
LICENSE
|
|
2
|
-
MANIFEST.in
|
|
3
|
-
README.md
|
|
4
|
-
setup.py
|
|
5
|
-
client_perf/__init__.py
|
|
6
|
-
client_perf/__main__.py
|
|
7
|
-
client_perf/api.py
|
|
8
|
-
client_perf/comparison.py
|
|
9
|
-
client_perf/db.py
|
|
10
|
-
client_perf/log.py
|
|
11
|
-
client_perf/task_handle.py
|
|
12
|
-
client_perf/util.py
|
|
13
|
-
client_perf.egg-info/PKG-INFO
|
|
14
|
-
client_perf.egg-info/SOURCES.txt
|
|
15
|
-
client_perf.egg-info/dependency_links.txt
|
|
16
|
-
client_perf.egg-info/entry_points.txt
|
|
17
|
-
client_perf.egg-info/top_level.txt
|
|
18
|
-
client_perf/core/__init__.py
|
|
19
|
-
client_perf/core/android_tools.py
|
|
20
|
-
client_perf/core/device_manager.py
|
|
21
|
-
client_perf/core/harmony_tools.py
|
|
22
|
-
client_perf/core/ios_tools.py
|
|
23
|
-
client_perf/core/monitor.py
|
|
24
|
-
client_perf/core/pc_tools.py
|
|
25
|
-
test_result/index.html
|
|
26
|
-
tool/PresentMon-1.8.0-x64.exe
|
|
27
|
-
tool/PresentMon-1.8.0-x86.exe
|
|
28
|
-
tool/go-ios-bin/go-ios-linux/ios-amd64
|
|
29
|
-
tool/go-ios-bin/go-ios-linux/ios-arm64
|
|
30
|
-
tool/go-ios-bin/go-ios-mac/ios
|
|
31
|
-
tool/go-ios-bin/go-ios-win/ios.exe
|
client_perf-4.0.2/setup.py
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
# coding: utf-8
|
|
3
|
-
from setuptools import setup, find_packages
|
|
4
|
-
|
|
5
|
-
setup(
|
|
6
|
-
name="client-perf",
|
|
7
|
-
version="4.0.2",
|
|
8
|
-
description="客户端性能采集与分析工具",
|
|
9
|
-
long_description=open("README.md", "r", encoding="utf-8").read(),
|
|
10
|
-
long_description_content_type="text/markdown",
|
|
11
|
-
author="fanbozhou",
|
|
12
|
-
author_email="15525730080@163.com",
|
|
13
|
-
url="https://github.com/15525730080/client_perf",
|
|
14
|
-
packages=find_packages(),
|
|
15
|
-
include_package_data=True,
|
|
16
|
-
package_data={
|
|
17
|
-
"": ["test_result/**/*", "test_result/*", "tool/**/*", "tool/*"],
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
classifiers=[
|
|
21
|
-
"Programming Language :: Python :: 3",
|
|
22
|
-
"License :: OSI Approved :: MIT License",
|
|
23
|
-
"Operating System :: OS Independent",
|
|
24
|
-
],
|
|
25
|
-
python_requires=">=3.7",
|
|
26
|
-
entry_points={
|
|
27
|
-
"console_scripts": [
|
|
28
|
-
"client-perf=client_perf.__main__:main",
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|