Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新性能标准的一些描述 #632

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Design/PerfMeasure.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Unity小游戏的启动可参考[启动流程与时序](Startup.md)
| 核心资源 | 除首资源包外进入游戏核心玩法所需的资源量 | 业务自定下载,通常为AssetBundle |
| CALLMAIN | 引擎和首场景(Loading)初始化 | 通过timelog,或日志查看“CALLMAIN耗时” |
| 游戏初始化完成 | 引擎和首场景完成,出现首个业务场景 | 通过timelog, 或日志查看“游戏启动耗时” |
| 游戏可交互完成 | 游戏核心场景完成 | 通常定义为用户可交互的时机,可通过[启动留存上报能力](ReportStartupStat.md)上报统计。</br>eg:休闲游戏为**核心玩法**,RPG游戏为**创角** |
| 游戏可交互完成 | 游戏核心场景完成 | 通常定义为用户可交互的时机,可通过[启动留存上报能力](ReportStartupStat.md)上报统计。</br>注:这个时间一般指的是**无缓存启动**情况下的时间</br>eg:休闲游戏为**核心玩法**,RPG游戏为**创角** |
| 内存峰值 | 内存峰值 | 进程内存峰值,测量方法请参考[优化Unity WebGL的内存](OptimizationMemory.md) |
| 内存Crash运行时长| 由于内存不足而使小游戏发生Crash时,当前游戏的运行时长,表示游戏的稳定运行时长 | 通过[小游戏数据助手](https://developers.weixin.qq.com/minigame/analysis/assistant.html)查看(仅包含线上用户数据)</br> 数据路径:`数据 - 性能分析 - 运行性能 - 内存异常退出分析` |
| 帧率 | 核心玩法的平均帧率 | 测量5分钟以上游戏核心玩法帧率,取平均值 |
Expand Down Expand Up @@ -62,7 +62,7 @@ Unity小游戏的启动可参考[启动流程与时序](Startup.md)

| 阶段 | 重点关注指标 |
| :---: | --- |
| 启动 | 1. 游戏初始化完成耗时</br> 2. 游戏可交互耗时 |
| 启动 | 1. 游戏初始化完成耗时</br> 2. 游戏可交互耗时(新用户无缓存启动时) |
| 运行 | 1. 内存峰值</br> 2. FPS均值</br> 3. 卡顿率</br> 4. 内存Crash率(iOS)</br> 5. 内存Crash运行时长 |
| 兼容性问题 | 1. 逻辑异常</br> 2. 黑/白屏</br> 3. JS Error |

Expand All @@ -84,6 +84,8 @@ Unity小游戏的启动可参考[启动流程与时序](Startup.md)

重点关注:`内存峰值`、`GC后内存峰值`、`内存Crash率`、`内存Crash运行时长`

> 注:如果使用PerfDog采集数据,其CPU占用数据是**除以**了核心数的。跟该表格对比时,请将数据**乘以**核心数之后再作对比。

<img src='../image/performance-standard/ios_running_performance.png'/>

#### Android性能评测标准
Expand Down