在高通CamX中,如何从HAL角度看输出的帧率呢?
打开log
将如下两行setting添加到camxoverridesettings.txt
中。
enableFPSLog=TRUE
logPerfInfoMask=0x10000
然后
- 执行
adb push camxoverridesettings.txt /vendor/etc/camera/camxoverridesettings.txt
- kill掉camera hal进程,因为修改camxoverridesettings需要camera hal进程重启才能生效
过滤日志查看FPS打印
然后搜索:CalculateResultFPS
logcat |grep -i CalculateResultFPS
日志输出如下,每10秒打印一次log:
02-10 19:12:18.148 32460 32486 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:12:28.170 32460 32482 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:12:38.192 32460 32483 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:12:48.215 32460 32481 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.04
02-10 19:12:58.238 32460 32486 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.04
02-10 19:13:08.259 32460 32483 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:13:18.281 32460 32481 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:13:28.304 32460 32484 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.04
02-10 19:13:38.326 32460 32482 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:13:48.351 32460 32486 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.04
02-10 19:13:58.370 32460 32486 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:14:08.394 32460 32482 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.04
02-10 19:14:18.416 32460 32486 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.05
02-10 19:14:28.439 32460 32481 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.04
02-10 19:14:38.463 32460 32482 I CamX : [PINFO][CORE ] camxsession.cpp:5954 CalculateResultFPS() FPS: 24.04