自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

OpenHarmony性能分析工具之Hiperf

系統(tǒng) OpenHarmony
本篇給大家介紹OpenHarmony性能分析工具h(yuǎn)iperf的相關(guān)知識(shí)。希望能夠幫助到你!

??想了解更多內(nèi)容,請(qǐng)?jiān)L問:??

??51CTO和華為官方合作共建的鴻蒙技術(shù)社區(qū)??

??https://ost.51cto.com??

一、hiperf使用

代碼位置 https://gitee.com/openharmony/developtools_hiperf。

1.主命令參數(shù)

2.list 命令

列出設(shè)備上支持的所有事件名稱。

事件名稱用于 stat 和 record 的 -e 和 -g 參數(shù)。

Usage: hiperf list [event type name]

下面列出了設(shè)備支持的HW事件,并且會(huì)提示哪些事件此設(shè)備不支持。

./hiperf list hw

3.stat 命令

監(jiān)聽指定目標(biāo)程序,周期性打印性能計(jì)數(shù)器的值。

Usage: hiperf stat [options] [command [command-args]]
Collect performance counter information of running [command].

下面展示了一個(gè) stats 監(jiān)聽本進(jìn)程 在 CPU 0 上 3 秒的性能計(jì)數(shù)器命令。

 ./hiperf stat -d 3 -c 0

4.record 命令

采樣指定目標(biāo)程序,并且將采樣數(shù)據(jù)保存到指定的文件中(默認(rèn)為perf.data)。

Usage: hiperf record [options] [command [command-args]]
Collect performance sampling information of running [command].

對(duì)全系統(tǒng)所有進(jìn)程采樣3秒,并且顯示詳細(xì)的信息。

./hiperf record -d 3 -a --verbose

二、hiperf使用示例

1.hiperf命令

hiperf record -d 10 -a 

默認(rèn)生成perf.data文件路徑:

/data/local/tmp

2.hdc導(dǎo)出perf.data文件

hdc file recv /data/local/tmp/perf.data  %cd%

3.生成符號(hào)表

(1)將lib庫:

Z:\OpenHarmony\master\out\rk3568\mingw_x86_64\developtools\hiperf
libhiperf_report.dll
libhiperf_report.lib

拷貝到腳本recv_binary_cache.py的當(dāng)前目錄的bin\windows\x86_64目錄下。

(2) 將hdc_std.exe文件添加到PATH路徑下。

(3)板子連接電腦,hdc_std shell可以正常使用。

(4) perf.data文件在 recv_binary_cache.py腳本的目錄下。

(5)收集perf.data 里面記錄的相關(guān)文件和庫的符號(hào)表。

python recv_binary_cache.py -l Z:\OpenHarmony\master\out\rk3568\lib.unstripped  Z:\OpenHarmony\master\out\rk3568\exe.unstripped

路徑根據(jù)實(shí)際使用修改。

4.生成html文件

產(chǎn)生HTML文件,默認(rèn)的文件名是 hiperf_report.html。

python make_report.py

5.html文件

Chart Statistics界面。

Sample Table界面。

Flame Graph界面。

??想了解更多內(nèi)容,請(qǐng)?jiān)L問:??

??51CTO和華為官方合作共建的鴻蒙技術(shù)社區(qū)??

??https://ost.51cto.com??

責(zé)任編輯:jianghua 來源: 鴻蒙社區(qū)
相關(guān)推薦

2022-01-26 15:07:04

bytrace工具OpenHarmon

2024-07-09 08:31:26

2022-01-12 14:45:26

鴻蒙HarmonyOS應(yīng)用

2022-09-28 14:13:03

Linux工具

2024-01-03 15:41:49

2017-06-12 18:48:00

Android性能分析工具

2018-03-13 11:38:14

2011-04-02 10:29:20

Linux工具

2015-05-25 14:13:18

Yahoo MySQL性能分析工開源

2011-06-14 13:48:07

性能優(yōu)化工具

2013-03-20 17:18:07

Linux系統(tǒng)性能調(diào)優(yōu)

2017-05-17 15:09:46

Linux分析性能工具

2013-03-06 10:24:12

ksar工具系統(tǒng)性能

2020-08-12 08:27:05

前端性能分析工具開發(fā)

2022-07-19 20:04:31

NAPI模塊鴻蒙

2022-07-29 14:36:17

工具性能代碼

2024-02-29 08:23:50

Lighthouse分析工具開發(fā)者

2024-03-26 15:25:55

應(yīng)用接口文件轉(zhuǎn)換工具鴻蒙

2023-04-26 15:36:51

WPA鴻蒙

2012-03-30 15:40:34

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)