1、
查看软连接,只需要替换软连接的库即可
2、
系统性能测试工具:
\\10.10.10.164\Common_Repository\DDR相关工具
瑞芯微芯片专用芯片性能测试工具,支持RK全部芯片。
打印性能和cpu占用率指标示例(rk-msch-probe_XX工具使用方法参考文档)
$ rk-msch-probe_v1.06 -c rv1126 -f 924 & top -d 2
将CPU修改为性能模式:
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
rv1126 npu定频600:
cat /sys/devices/platform/ffbb0000.rkvenc/devfreq/ffbb0000.rkvenc/cur_freq
echo 600000000 > /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/min_freq
echo 600000000 > /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/max_freq
cat /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/cur_freq
3、
rv1126单个npu功能测试工具:
mediaserver -S -d -c ../share/mediaserver/rv1109-uvc/camera_nv12_rga_nn_link-facelandmark.conf
4、
打印帧率代码:
int64_t SystemTime2() { struct timespec t; t.tv_sec = t.tv_nsec = 0; clock_gettime(CLOCK_MONOTONIC, &t); return (int64_t)(t.tv_sec) * 1000 + t.tv_nsec / 1000000; } void DumpFps() { static int mFrameCount; static int mLastFrameCount = 0; static int mLastFpsTime = 0; static float mFps = 0; mFrameCount++; int64_t now = SystemTime2(); int64_t diff = now – mLastFpsTime; if (diff > 500) { mFps = ((mFrameCount – mLastFrameCount) * 1000) / diff; mLastFpsTime = now; mLastFrameCount = mFrameCount; LOG(“—mFps = %2.3f\n”, mFps); } }5、
1109上面,设置定频和查看频率的命令(UAC测算CPU占用率的时候):
查看cpu频率:cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
查看支持的频率:cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
定频:echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
设置频率1g: echo 1008000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
来源:https://blog.csdn.net/zhoudidong/article/details/107101929
免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:RKMedia性能测试总结 https://www.yhzz.com.cn/a/13931.html