PerfDog Service CLI - 命令行性能测试工具(供 AI/自动化脚本使用)
Project description
perfdog-service-cli
PerfDog Service 命令行性能测试工具 — 供 AI Agent / 自动化脚本使用。
安装
pip install perfdog-service-cli --extra-index-url https://<username>:<token>@mirrors.tencent.com/repository/pypi/tencent_pypi/simple
快速开始
# 连接 PerfDog Service
perfdog-service connect --token YOUR_TOKEN
# 查看设备列表
perfdog-service devices
# 一键测试应用
perfdog-service test-app -d DEVICE_ID -p com.example.app --duration 60
# 手动控制测试流程(供 AI 编排)
perfdog-service start -d DEVICE_ID --package com.example.app
perfdog-service label -d DEVICE_ID -n "场景1"
perfdog-service stop -d DEVICE_ID
perfdog-service save -d DEVICE_ID --case-name "v1.0测试"
命令列表
| 类别 | 命令 | 说明 |
|---|---|---|
| 连接 | connect |
连接 PerfDog Service |
| 设备 | devices |
获取设备列表 |
init-device |
初始化设备 | |
status |
获取设备状态 | |
device-info |
获取设备详细信息 | |
cpu-info |
获取 CPU 信息 | |
| 应用 | apps |
获取应用列表 |
processes |
获取系统进程列表 | |
| 一键测试 | test-app |
一键测试应用 |
test-windows |
一键测试 Windows 进程 | |
test-console |
一键测试游戏主机 | |
test-network |
弱网测试 | |
| 手动控制 | start |
开始测试 |
stop |
停止测试 | |
save |
保存数据 | |
label |
添加标签 | |
note |
添加注释 | |
update-label |
修改标签 | |
remove-note |
删除注释 | |
| 配置 | preferences |
设置偏好(APK 安装等) |
available-types |
查看支持的数据类型 | |
enabled-types |
查看已启用的类型 | |
set-screenshot-interval |
设置截图间隔 | |
set-memory-freq |
设置内存采样频率 | |
| 弱网 | network-templates |
查看网络模板 |
change-network-template |
切换网络模板 | |
submit-network-template |
创建网络模板 | |
delete-network-template |
删除网络模板 | |
| 高级 | add-console |
添加主机设备 |
refresh-remote |
刷新远程设备 | |
check-occupied |
检查设备占用 | |
render-resolution |
获取渲染分辨率 | |
unreal-report |
Unreal 内存报告 | |
launch-remote-collector |
启动远程收集器 | |
set-upload-server |
设置数据上传服务器 | |
clear-upload-server |
清除数据上传服务器 | |
| 管理 | create-task |
创建任务 |
archive-case |
归档用例 | |
share-case |
分享用例 | |
kill |
关闭 Service |
架构
perfdog_service_cli/
├── cli/ # Click 命令定义
│ ├── main.py # 36 个原子命令
│ └── output.py # 终端格式化
├── service/ # gRPC 通信层
│ ├── service_client.py # gRPC 客户端
│ ├── service_ops.py # 原子操作(序列化边界)
│ ├── perfdog_pb2.py # protobuf
│ └── perfdog_pb2_grpc.py # gRPC stub
└── common/ # 配置 + 日志
├── config.py
└── log.py
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
perfdog_service_cli-1.0.1.tar.gz
(90.6 kB
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 perfdog_service_cli-1.0.1.tar.gz.
File metadata
- Download URL: perfdog_service_cli-1.0.1.tar.gz
- Upload date:
- Size: 90.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3451d779794190d88e8af45792cee115d445e4ffc246579091d5d1812e379b17
|
|
| MD5 |
3efe80501602eaf5cd3051f5219aa73f
|
|
| BLAKE2b-256 |
6866ec6134cb8dbec600f6b25932efd77650c02b4dd68da3a19d3caab055ad45
|
File details
Details for the file perfdog_service_cli-1.0.1-py3-none-any.whl.
File metadata
- Download URL: perfdog_service_cli-1.0.1-py3-none-any.whl
- Upload date:
- Size: 81.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d7ca2b6f581de29318b472b125bb74194b25f65168dc84a3e32798ec5ac0cd7
|
|
| MD5 |
11f95380e7847ef00d0eb0afb758e69c
|
|
| BLAKE2b-256 |
c7c4648015289e5f936bdcea448f1619dd26813061aa1e1bb2336c74b12afbab
|