gpt4 book ai didi

android - 如何使用 adb 命令将配置文件 GPU 渲染显示/隐藏为条形图?

转载 作者:行者123 更新时间:2023-11-29 15:39:55 30 4
gpt4 key购买 nike

我正在尝试使用脚本自动执行我在开发时定期执行的一些任务。其中之一是打开和关闭 GPU 配置文件渲染。但是,我找不到 adb 命令来显示/隐藏它。

最佳答案

Developer Options 中的Profile GPU Rendering 复选框控制debug.hwui.profile 系统属性的值:

/**
* System property used to enable or disable hardware rendering profiling.
* The default value of this property is assumed to be false.
*
* When profiling is enabled, the adb shell dumpsys gfxinfo command will
* output extra information about the time taken to execute by the last
* frames.
*
* Possible values:
* "true", to enable profiling
* "visual_bars", to enable profiling and visualize the results on screen
* "false", to disable profiling
*
* @see #PROFILE_PROPERTY_VISUALIZE_BARS
*
* @hide
*/
public static final String PROFILE_PROPERTY = "debug.hwui.profile";

因此,您可以使用 setprop debug.hwui.profile visual_bars 命令启用分析,使用 setprop debug.hwui.profile false 禁用它。

关于android - 如何使用 adb 命令将配置文件 GPU 渲染显示/隐藏为条形图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42492191/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com