首先要打开log:
enableFPSLog=TRUE logPerfInfoMask=0x10000
然后搜索: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