吉林省建设行业继续教续网站,wordpress支付宝支付宝,有那些网站可以做担保交易的,找大学生做家教去哪个网站找好本文介绍如何使用 Android GPU Inspector (AGI) 对Android 应用进行系统性能分析和帧性能分析 。面向熟悉Android图形的开发者。 待分析应用需要的前置条件 (1) 将应用设置为可调试状态 application [...] android:debuggabletrue#xff08;2#xff09…本文介绍如何使用 Android GPU Inspector (AGI) 对Android 应用进行系统性能分析和帧性能分析 。面向熟悉Android图形的开发者。 待分析应用需要的前置条件 (1) 将应用设置为可调试状态 application [...] android:debuggabletrue2如果应用使用 native Vulkan你还需要启用 Vulkan validation layers 。可以通过adb命令来启用 app_packageYOUR APP PACKAGE NAME HERE
abiarm64v8a # Possible values: arm64v8a, armeabi-v7a, x86adb shell settings put global enable_gpu_debug_layers 1
adb shell settings put global gpu_debug_app ${app_package}
adb shell settings put global gpu_debug_layer_app com.google.android.gapid.${abi}
adb shell settings put global gpu_debug_layers VK_LAYER_KHRONOS_validation在完成分析后执行以下命令关闭该特性 adb shell settings delete global enable_gpu_debug_layers
adb shell settings delete global gpu_debug_app
adb shell settings delete global gpu_debug_layers
adb shell settings delete global gpu_debug_layer_app应用在启用Vulkan validation layers时在进行性能分析之前必须解决所有Vulkan validation相关的warning和error。 (3)如果使用的是测试版GPU驱动程序在 标签下添加以下元数据 meta-dataandroid:namecom.android.graphics.developerdriver.enableandroid:valuetrue /设备验证 AGI 需要兼容的 GPU 驱动程序。为了确保它提供有效的性能分析 AGI 会在您首次连接新设备时运行验证检查 大约需要十秒钟通过检查后您就可以使用该设备 来分析 Android 应用。 获取性能分析或者帧数据 1启动 AGI进行初始化设置。进入主界面 (2)点击 Capture a new trace, 系统会显示 Capture A New Trace 对话框中; 或者点击 Capture System Profile trace 按钮。选择过滤条件和选项就可以抓取性能分析或者帧数据了。 4. 分析数据 点击 Open Trace,打开获取到的性能分析数据或者帧数据然后就可以开始分析了。