android - 有没有办法在构建后直接附加新的 Android Profiler 来调试应用程序进程?

标签 android android-studio

附加 Android Studio 3.0 Android Profiler 以从冷启动调试应用程序几乎是不可能的,因为我必须在很短的时间内从下拉列表中选择进程(并开始记录)。

profiling app cold start,有没有更方便的方法?

不幸的是,在 android 开发者设置中选择“调试应用程序”没有帮助。

最佳答案

借助 Android Studio 3.2 Canary 11,您可以从启动时分析您的应用。

只需转到“运行”->“编辑配置”->“性能分析”选项卡并选中“在启动时开始记录方法跟踪”。

这是一个下载链接。 https://developer.android.com/studio/archive.html

关于android - 有没有办法在构建后直接附加新的 Android Profiler 来调试应用程序进程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42060590/

相关文章:

android - Material 日期选择器选择的日期圈不在中心,如何使其适合中心?

Android SQLite查询错误 "no such column"

java - Android编辑文本属性

android - 如何防止重复输入?

android - “C:\dev\sdk\android-sdk-essential\build-tools\24.0.1\aapt.exe”使用非零退出值1结束

android - 无法将 AndEngine 添加到 Android Studio

android - PWA 未显示在 Android 应用程序抽屉中

android - Volley 中的单例类有什么用

android-studio - android studio 中的 android TV 模拟器可以接收类型转换吗?

android - 在项目中添加AdMob广告时出现错误