
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
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
-
浏览量:938次2018-10-13 15:59:14
-
浏览量:1375次2020-07-30 18:04:03
-
浏览量:984次2018-12-21 20:01:47
-
浏览量:1623次2017-11-28 12:33:29
-
浏览量:1024次2018-10-19 22:26:34
-
浏览量:169次2023-01-06 11:47:57
-
浏览量:2581次2022-10-24 14:44:33
-
浏览量:1175次2019-12-31 16:25:11
-
浏览量:9461次2020-12-07 23:36:10
-
浏览量:1144次2019-01-02 16:57:12
-
浏览量:1175次2018-12-09 14:53:14
-
浏览量:2422次2020-05-08 15:46:11
-
浏览量:5358次2021-01-16 15:50:24
-
浏览量:2856次2020-11-17 10:13:00
-
浏览量:1738次2020-06-12 19:39:57
-
浏览量:3746次2021-06-28 14:52:06
-
浏览量:900次2018-12-29 14:28:16
-
浏览量:1360次2020-08-19 16:47:34
-
浏览量:5475次2017-11-16 16:26:57


沉默小金





