简体   繁体   English

如何增加Android dumpsys gfxinfo可以记录的帧数?

[英]How to increase the number of frames that Android dumpsys gfxinfo can record?

I'm using command "dumpsys gfxinfo package.name" to record the performance data of my application. 我正在使用命令“ dumpsys gfxinfo package.name”来记录我的应用程序的性能数据。 I noted that it can only record 128 frames for "Draw","Process", and "execute". 我注意到它只能记录128帧用于“绘制”,“处理”和“执行”。 I want to automatically run the application for minutes or so and record those OGL data. 我想在几分钟左右的时间内自动运行该应用程序并记录这些OGL数据。 Is there any way I can do that? 有什么办法可以做到吗?

Thanks a lot! 非常感谢!

You could write a simple script which will fetch it for you every 100ms for example. 您可以编写一个简单的脚本,例如,每100ms为您获取一次。

Once you fetch data it's frees it's buffer. 一旦获取数据,它将释放它的缓冲区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM