Android中图形参数及图形内存信息获取

1、adb shelldumpsys gfxinfo

Caches:

Current memoryusage / total memory usage (bytes):

 TextureCache          2182188 /25165824

 LayerCache            6553600 /16777216

 RenderBufferCache           0/  2097152

 GradientCache               0/   524288

 PathCache                   0 /10485760

 TextDropShadowCache    225936/  2097152

 PatchCache               1408/   131072

 FontRenderer 0 A8      524288/   524288

 FontRenderer 0 RGBA         0/        0

 FontRenderer 0 total   524288 /   524288

Other:

 FboCache                   15/       16

Total memoryusage:

  9487420 bytes, 9.05 MB

 

2、adb shelldumpsys SurfaceFlinger

[HWC Compose State (0)]

  Total size: 0 bytes

 

Allocated buffers:

0xb7809d40: 2040.00KiB |  540 ( 544) x  960 |       1 | 0x00001a00

0xb78328e8: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb784cc80: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00001a00

0xb7870308:   80.75 KiB |  540 ( 544) x  38 |        1 | 0x00000900

0xb787b168: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00001a00

0xb789a3d8:   80.75 KiB | 540 ( 544) x   38 |        1 | 0x00000900

0xb789b900: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb7997e08: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb79992c8:   80.75 KiB | 540 ( 544) x   38 |        1 | 0x00000900

0xb79b7770: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb79e09e8:   80.75 KiB | 540 ( 544) x   38 |        1 | 0x00000900

0xb79e5fa0: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb79ed170: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb79ee9a8: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb79ef168: 4080.00KiB | 1080 (1088) x  960 |        2 | 0x00000900

0xb7a24a68: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb7a2d580: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb7a34c48: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb7a885c8: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

0xb7c718c0: 2040.00 KiB |  540 ( 544) x 960 |        1 | 0x00000900

Totalallocated (estimate): 35003.00 KB

 

  last eglSwapBuffers() time: 40.539000 us

  last transaction time     : 79.307000 us

  transaction-flags         : 00000000

  refresh-rate              : 60.360004 fps

  x-dpi                     : 240.000000

  y-dpi                     : 240.000000

  EGL_NATIVE_VISUAL_ID      : 1

  gpu_to_cpu_unsupported    : 0

  eglSwapBuffers time: 0.000000 us

  transaction time: 0.000000 us

VSYNC state:enabled

  soft-vsync: enabled

3adb shell cat /sys/kernel/debug/ion/ion_mm_heapSoul4TMO have no this node

          client(        dbg_name)              pid             size address

----------------------------------------------------

 m.android.phone(         gralloc)             1034          2359296 0xdcacfe80

 ndroid.systemui(         gralloc)              850         11059200 0xdd578b00

   system_server(         gralloc)              716          2359296 0xde0b3000

 .android.dialer(         gralloc)             4690         10715136 0xde348c00

  surfaceflinger(         gralloc)              222         35856384 0xdea49200

----------------------------------------------------

orphanedallocations (info is from last known client):

----------------------------------------------------

  total orphaned                0

          total          38215680

   deferred free                0

----------------------------------------------------

129 order 2highmem pages in pool = 2113536 total

0 order 2 lowmempages in pool = 0 total

70 order 2highmem pages in cached_pool = 1146880 total

0 order 2 lowmempages in cached_pool = 0 total

0 order 0highmem pages in pool = 0 total

0 order 0 lowmempages in pool = 0 total

2 order 0highmem pages in cached_pool = 8192 total

0 order 0 lowmempages in cached_pool = 0 total

mm_heap_freelisttotal_size=0x0

----------------------------------------------------

  buffer    size kmap ref hdl mod      mva secflag pid comm(client)   v1   v2  v3   v4 dbg_name

0xd1c37580    86016  0   3   2   0   f00000  0   0 222 surfaceflinger 0x0 0x00x0 0x0 nothing sf_info(-18771955 0 0 540 38 0 0 540 38 335478785 0 0 0 0 0 0 )

0xd1c37f80    86016  0   3   2   0   900000  0   0 222 surfaceflinger 0x0 0x00x0 0x0 nothing sf_info(-18771955 0 0 540 38 0 0 540 38 67043329 0 0 0 0 0 0 )

0xd1e28380  2088960   0  2   1   0 2100000   0   0 222 surfaceflinger 0x0 0x0 0x0 0x0 nothingsf_info(-18771955 0 0 540 119 0 0 540 119 134152193 0 0 0 0 0 0 )

0xd702ed00    86016  0   3   2   0  1000000  0   0 222 surfaceflinger 0x0 0x00x0 0x0 nothing sf_info(-18771955 0 0 540 38 0 0 540 38 67043329 0 0 0 0 0 0 )

0xd72ebd00  2088960  0   3   2   0  2700000  0   0 222 surfaceflinger 0x0 0x00x0 0x0 nothing sf_info(-18771955 0 0 540 960 0 0 540 960 67043329 0 0 0 0 0 0)

0xdc9a0a80  2088960  0   3   2   0   c00000  0   0 222 surfaceflinger 0x0 0x00x0 0x0 nothing sf_info(-18771955 0 38 540 922 0 38 540 922 67043329 0 0 0 0 00 )


你可能感兴趣的:(Android)