文档管理中心
我的
指南图形性能调优Graphics Profiler使用指导Frame Profiler使用指导CLI性能数据

性能数据

从抓取的单帧或多帧文件中接收性能分析数据,文件可能会在设备上被多次回放。

使用方法

展开

示例

说明

higpuperf.exe profile

显示该命令的帮助信息

higpuperf.exe profile

--query counters

example.rdc

使用 example.rdc 文件中的 API 获取设备上的计数器列表,并以文本格式输出到标准输出

higpuperf.exe profile

--counters Huawei/General

example.rdc

在默认目标设备上,使用计数器集Huawei/General对 example.rdc 文件进行性能分析

higpuperf.exe profile

--perfstate high

--format csv

--output values.csv

--counters 6003014

--range-type drawcall

example.rdc

在默认目标设备上,使用计数器 6003014对 example.rdc 文件以drawcall粒度进行性能分析,并将结果以 CSV 格式输出到 values.csv 文件,此时 GPU 性能处于高负载状态

选项说明

展开

选项

参数

说明

--perfstate

low | medium | high

选择GPU和DDR频率锁定值,默认值为“medium”

--query

counters

若启用该选项,系统将输出支持的计数器列表,而非执行分析操作

--counters

<id> | <id-1>,<id-2>...

以逗号分隔的计数器列表,作为计数器标识符,其数字标识符或类别均可接受

有效值示例:6002307,Huawei/General

若未指定值,则对所有计数器值进行采样

--range-type

drawcall | program | programgroup |renderpass | commandbuffer(Vulkan only) | frame

设置计数器值采样的粒度,默认值为 renderpass

--format

txt | csv

设置查询结果的输出格式,默认使用txt格式,输出将定向到标准输出(stdout)

--output

<filename>

将输出结果写入指定文件

支持常用选项 -v/--verbose、-h/--help、-l/--log、-t/--target,详情见通用命令行参数的使用。