gpt4 book ai didi

android - 如何像在 android 4.2 中一样在 android 4.3 中启用跟踪

转载 作者:行者123 更新时间:2023-11-29 21:34:50 25 4
gpt4 key购买 nike

在 android 4.2 中,转到设置->开发人员选项->启用跟踪,我可以启用跟踪并在 systrace 输出图表中显示它们。但是在android 4.3中,enable trace选项被移除了,那么如何开启trace呢?

最佳答案

来自Official Doc .

Systrace events for apps

Android 4.3 adds the Trace class with two static methods, beginSection() and endSection(), which allow you to define blocks of code to include with the systrace report. By creating sections of traceable code in your app, the systrace logs provide you a much more detailed analysis of where slowdown occurs within your app.

For information about using the Systrace tool, read Analyzing Display and Performance with Systrace.

关于android - 如何像在 android 4.2 中一样在 android 4.3 中启用跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18630192/

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