2017-02-27 3 views
0

私は、スクリプトを使用して定期的に開発中に行ういくつかのタスクを自動化しようとしています。その1つは、GPUプロファイルのレンダリングのオン/オフを切り替えることです。しかし、私はそれを表示/非表示にするadbコマンドを見つけることができません。どのように表示/非表示にするadbコマンドを使用してバーとしてプロファイルGPUレンダリング?

答えて

2

debug.hwui.profileシステムプロパティの値を制御開発者向けのオプションでチェックボックスレンダリングプロファイルGPU:

/** 
    * 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 falseを有効にするには、setprop debug.hwui.profile visual_barsコマンドを使用することができます。

+0

ありがとう@ alex-p。 – abhiank

関連する問題