本帖最后由 kris_fei 于 2015-12-29 10:26 编辑
平台是imx6, Android 4.4
使用Camera preview callback来获取preview实时帧,发现内存会一点点减少,请问该如何调试呢?
下面是用top看到Preview callback线程一点点在吃内存:
User 22%, System 6%, IOW 0%, IRQ 0%
User 227 + Nice 0 + Sys 68 + Idle 724 + IOW 0 + IRQ 0 + SIRQ 0 = 1019
PID TID PR CPU% S VSS RSS PCY UID Thread Proc
2123 3018 1 6% S 291608K 52728K fg media C2-0-CallbkProc /system/bin/mediaserver
2987 2987 0 3% S 892792K 55948K fg u0_a20 android.camera2 com.android.camera2
2123 2751 0 2% S 291608K 52728K fg media Binder_2 /system/bin/mediaserver
2123 2489 0 2% S 291608K 52728K fg media Binder_1 /system/bin/mediaserver
2123 3010 0 1% S 291608K 52728K fg media Binder_3 /system/bin/mediaserver
2123 2123 1 1% S 291608K 52728K fg media mediaserver /system/bin/mediaserver
2987 2999 0 1% S 892792K 55948K fg u0_a20 Binder_2 com.android.camera2
2987 2998 0 1% S 892792K 55948K fg u0_a20 Binder_1 com.android.camera2
2987 3036 0 1% S 892792K 55948K fg u0_a20 Binder_3 com.android.camera2
2987 3037 0 1% S 892792K 55948K fg u0_a20 Binder_4 com.android.camera2
3080 3080 1 0% R 1400K 488K root top top
2120 2120 1 0% S 216940K 6048K fg system surfaceflinger /system/bin/surfaceflinger
2987 3005 0 0% S 892792K 55948K fg u0_a20 Camera Handler com.android.camera2
2120 2264 0 0% S 216940K 6048K fg system EventThread /system/bin/surfaceflinger
2123 3034 0 0% S 291608K 52728K fg media RequestHandle /system/bin/mediaserver
1214 1214 0 0% S 0K 0K root kinteractiveup
1230 1230 0 0% S 0K 0K root galcore daemon
2120 2265 1 0% S 216940K 6048K fg system EventThread /system/bin/surfaceflinger
2123 3014 0 0% S 291608K 52728K fg media C2-0-FrameProc /system/bin/mediaserver
2123 3033 1 0% S 291608K 52728K fg media RequestHandle /system/bin/mediaserver
User 23%, System 7%, IOW 0%, IRQ 0%
User 237 + Nice 0 + Sys 78 + Idle 711 + IOW 0 + IRQ 0 + SIRQ 0 = 1026
PID TID PR CPU% S VSS RSS PCY UID Thread Proc
2123 3018 1 6% S 291916K 52992K fg media C2-0-CallbkProc /system/bin/mediaserver
2123 3032 0 3% S 291916K 52992K fg media RequestHandle /system/bin/mediaserver
2987 2987 0 3% S 892792K 55948K fg u0_a20 android.camera2 com.android.camera2
2123 2489 0 1% S 291916K 52992K fg media Binder_1 /system/bin/mediaserver
2987 2999 0 1% S 892792K 55948K fg u0_a20 Binder_2 com.android.camera2
2123 3010 1 1% S 291916K 52992K fg media Binder_3 /system/bin/mediaserver
2987 2998 0 1% S 892792K 55948K fg u0_a20 Binder_1 com.android.camera2
2987 3037 1 1% S 892792K 55948K fg u0_a20 Binder_4 com.android.camera2
2987 3036 0 1% S 892792K 55948K fg u0_a20 Binder_3 com.android.camera2
2123 2751 1 1% S 291916K 52992K fg media Binder_2 /system/bin/mediaserver
3080 3080 1 1% R 1400K 488K root top top
2120 2120 0 0% S 216940K 6048K fg system surfaceflinger /system/bin/surfaceflinger
2123 2123 0 0% S 291916K 52992K fg media mediaserver /system/bin/mediaserver
2594 2697 0 0% S 691868K 23756K fg u0_a5 MtpServer android.process.media
2987 3005 1 0% S 892792K 55948K fg u0_a20 Camera Handler com.android.camera2
2123 3033 0 0% S 291916K 52992K fg media RequestHandle /system/bin/mediaserver
2120 2265 1 0% S 216940K 6048K fg system EventThread /system/bin/surfaceflinger
2120 2164 0 0% S 216940K 6048K fg system DispSync /system/bin/surfaceflinger
2464 2480 0 0% S 951468K 40068K bg system android.bg system_server
1230 1230 0 0% S 0K 0K root galcore daemon
^C
|