Issue
I'm trying to automate some of the tasks which I do while development on a regular basis using scripts. One of which is switching on and off GPU Profile rendering. However, I can't find the adb command to show/hide it.
Solution
The Profile GPU Rendering checkbox in the Developer Options controls value of the debug.hwui.profile
system property:
/**
* 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";
So you can use setprop debug.hwui.profile visual_bars
command to enable profiling and setprop debug.hwui.profile false
to disable it.
Answered By - Alex P.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.