2

我正在尝试限制进程/system/bin/mm-qcamera-daemon的日志级别,因为当摄像头开始工作(录制视频)时,它会生成许多类似于以下条目的日志:

   03-13 12:04:00.241   602  3224 I mm-camera: <ISP   >< INFO> 6602: isp_util_print_meta_stream_info: Deallocate resources
   03-13 12:04:00.241   602  3224 E mm-camera: <ISP   ><ERROR> 2121: isp_resource_unlink_modules: vfe 0 isp_submod_ports 0xf1d0b480 port parent linearization40
   03-13 12:04:00.243   602  3224 E mm-camera: <ISP   ><ERROR> 2028: isp_stream_resource_deallocate: res_alloc->num_streams 1
   03-13 12:04:00.243   602  3224 E mm-camera: <ISP   ><ERROR> 2028: isp_stream_resource_deallocate: res_alloc->num_streams 0
   03-13 12:04:00.243   602  3224 E mm-camera: <ISP   ><ERROR> 1923: isp_resource_free_isp: session 1 hw_id 0 
   03-13 12:04:00.244   602  3224 E mm-camera: <ISP   ><ERROR> 990: isp_resource_reserve_isp: dual_dbg single vfe reserved 1,request op pix clk 460000000
   03-13 12:04:00.244   602  3224 E mm-camera: <ISP   ><ERROR> 1111: isp_resource_reserve_isp: Reserved 1
   03-13 12:04:00.245   602  3224 I mm-camera: <ISP   >< INFO> 2545: isp_resource_allocate: INFO: ISP resource acquired: sess

   03-13 12:04:00.263   602  3710 I mm-camera: <MCT   >< INFO> 4531: mct_pipeline_stop_session_thread: Stop module name: pproc - X
   03-13 12:04:00.264   602   602 I mm-camera: <MCT   >< INFO> 4811: mct_pipeline_stop_session: Modules left: 5
   03-13 12:04:00.264   602  3711 I mm-camera: <MCT   >< INFO> 4523: mct_pipeline_stop_session_thread: Stop module name: imglib - E
   03-13 12:04:00.264   602   602 I mm-camera: <MCT   >< INFO> 4811: mct_pipeline_stop_session: Modules left: 4
   03-13 12:04:00.265   602  3708 I mm-camera: <MCT   >< INFO> 4531: mct_pipeline_stop_session_thread: Stop module name: isp - X
   03-13 12:04:00.265   602   602 I mm-camera: <MCT   >< INFO> 4811: mct_pipeline_stop_session: Modules left: 3
   03-13 12:04:00.266   602  3709 I mm-camera: <MCT   >< INFO> 4531: mct_pipeline_stop_session_thread: Stop module name: stats - X
   03-13 12:04:00.267   602   602 I mm-camera: <MCT   >< INFO> 4811: mct_pipeline_stop_session: Modules left: 2
   03-13 12:04:00.267   602  3711 I mm-camera: <MCT   >< INFO> 4531: mct_pipeline_stop_session_thread: Stop module name: imglib - X
   03-13 12:04:00.267   602   602 I mm-camera: <MCT   >< INFO> 4811: mct_pipeline_stop_session: Modules left: 1
   03-13 12:04:00.271   602  3706 I mm-camera: <MCT   >< INFO> 4531: mct_pipeline_stop_session_thread: Stop module name: sensor - X

相机工作正常,但我看到这个过程的 CPU 使用率很高。我试图通过使用以下命令来限制进程的日志级别,但它似乎没有效果:

adb shell setprop log.tag.mm-camera CRITICAL

任何帮助或提示都非常受欢迎。

PD:我使用的设备没有植根,所以我无法创建/data/local.prop文件,这是我在其他答案中阅读时限制日志级别的另一种选择。

4

1 回答 1

-2

将常规 logcat 切换到终端

$ ./adb logcat   // this for mac (I own mac so) you can search it for your own system.
于 2020-03-13T11:27:28.427 回答