android ion 内存泄漏排查

来源:互联网 发布:钢铁雄心4mac 编辑:程序博客网 时间:2024/05/12 01:09

1.查看各个进程的ION

:/sys/kernel/debug/ion/heaps # cat system-heap
cat system-heap
          client              pid             size
----------------------------------------------------
  surfaceflinger              211          6565888
  surfaceflinger              211         50413568
           fb                1         32538624
----------------------------------------------------
orphaned allocations (info is from last known client):
  surfaceflinger              211          7864320 0 1
----------------------------------------------------
  total orphaned          7864320
          total          90009600
   deferred free                0
----------------------------------------------------
0 order 8 highmem pages in pool = 0 total
27 order 8 lowmem pages in pool = 28311552 total
0 order 4 highmem pages in pool = 0 total
8 order 4 lowmem pages in pool = 524288 total
0 order 0 highmem pages in pool = 0 total
4 order 0 lowmem pages in pool = 16384 total

2.每个进程对这个buffer的引用情况:

   cat /proc/进程号/fd

0 0
原创粉丝点击