有没有办法在构建后直接附加新的 Android Profiler 来调试应用程序进程? [英] Is there a way to attach new Android Profiler to debug app process directly after build?

查看:22
本文介绍了有没有办法在构建后直接附加新的 Android Profiler 来调试应用程序进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Attaching Android Studio 3.0 Android Profiler to debug app from cold start is almost impossible, because I'd have to select process from dropdown (and start record) in very short timespan.

对于分析应用冷启动,有没有更方便的方法?

For profiling app cold start, is there a more convenient way?

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

Selecting "debug app" in android Developer Settings does not help unfortunately.

推荐答案

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

With Android Studio 3.2 Canary 11, you can profile your app from startup.

只需转到运行"->编辑配置"->分析"选项卡,然后选中启动时开始记录方法跟踪".

Just go to Run -> Edit Configurations -> Profiling Tab and check "Start recording a method trace on startup".

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

这篇关于有没有办法在构建后直接附加新的 Android Profiler 来调试应用程序进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆