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

简介: 1、adb shelldumpsys gfxinfoCaches:Current memoryusage / total memory usage (bytes): TextureCache          2182188 /25165824...

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 )


目录
相关文章
|
9月前
|
Arthas 监控 Java
Arthas memory(查看 JVM 内存信息)
Arthas memory(查看 JVM 内存信息)
768 6
|
8月前
|
缓存 编解码 Android开发
Android内存优化之图片优化
本文主要探讨Android开发中的图片优化问题,包括图片优化的重要性、OOM错误的成因及解决方法、Android支持的图片格式及其特点。同时介绍了图片储存优化的三种方式:尺寸优化、质量压缩和内存重用,并详细讲解了相关的实现方法与属性。此外,还分析了图片加载优化策略,如异步加载、缓存机制、懒加载等,并结合多级缓存流程提升性能。最后对比了几大主流图片加载框架(Universal ImageLoader、Picasso、Glide、Fresco)的特点与适用场景,重点推荐Fresco在处理大图、动图时的优异表现。这些内容为开发者提供了全面的图片优化解决方案。
342 1
|
10月前
|
SQL Oracle 关系型数据库
【YashanDB知识库】崖山有哪些内存参数,Share Pool各个参数之间有什么关系
【YashanDB知识库】崖山有哪些内存参数,Share Pool各个参数之间有什么关系
【YashanDB知识库】崖山有哪些内存参数,Share Pool各个参数之间有什么关系
|
11月前
|
SQL Oracle 关系型数据库
【YashanDB 知识库】崖山有哪些内存参数,Share Pool 各个参数之间有什么关系
在使用YashanDB时,用户常对内存参数配置有疑问,尤其是23.2及以上版本中,如SQL_POOL_SIZE+DICTIONARY_CACHE_SIZE超100报错,影响跑批性能。主要内存参数包括SHARE_POOL_SIZE、SQL_POOL_SIZE、DICTIONARY_CACHE_SIZE等,需合理配置以优化性能。SHARE POOL内含多个POOL,可动态调整。具体配置方法及观察使用情况的方式详见官网文档。
|
监控 Java Android开发
深入探讨Android系统的内存管理机制
本文将深入分析Android系统的内存管理机制,包括其内存分配、回收策略以及常见的内存泄漏问题。通过对这些方面的详细讨论,读者可以更好地理解Android系统如何高效地管理内存资源,从而提高应用程序的性能和稳定性。
568 16
|
监控 Java Android开发
深入探索Android系统的内存管理机制
本文旨在全面解析Android系统的内存管理机制,包括其工作原理、常见问题及其解决方案。通过对Android内存模型的深入分析,本文将帮助开发者更好地理解内存分配、回收以及优化策略,从而提高应用性能和用户体验。
JVM内存参数
-Xmx[]:堆空间最大内存 -Xms[]:堆空间最小内存,一般设置成跟堆空间最大内存一样的 -Xmn[]:新生代的最大内存 -xx[use 垃圾回收器名称]:指定垃圾回收器 -xss:设置单个线程栈大小 一般设堆空间为最大可用物理地址的百分之80
|
Java Shell Linux
从 am start 的 --user 参数说到 Android 多用户
am start 命令有时并不会乖乖如我们所愿,这时候我们需要知对策并知其所以然。
409 16
|
Android开发 开发者
Android性能优化——内存管理的艺术
Android性能优化——内存管理的艺术
|
存储 关系型数据库 MySQL
查询服务器CPU、内存、磁盘、网络IO、队列、数据库占用空间等等信息
查询服务器CPU、内存、磁盘、网络IO、队列、数据库占用空间等等信息
4966 2

热门文章

最新文章