Grigory-Rylov / android-methods-profiler

Yet another Android Profiler for AOSP .trace files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't find process

theapache64 opened this issue · comments

image

After pressing the Start button, the app has started but am getting this dialogue. I don't have AndroidStudio opened btw. Any idea why this is happening ? Any workaround ?

Usually that happens when trying to profile release app on non rooted device. Have you tried YAMP plugin for Android Studio? It reuse AS' adb bridge and can work with opened AS instances. Also plugin is newer and can search methods in all threads.

@Grigory-Rylov Ohh..No, I haven't. Standalone was working perfectly fine for me. Does the plugin support the release app on non-rooted devices? Is there any other advantage to using the plugin, apart from method search?

Plugin not support release app profiling on non rooted device. Difference now only in multithreading searching. When I figure out the how to make fat-jar with Gradle 7, then I will update standalone YAMP)

If you want to profile your release app, you can record . trace profile programmatically by calling ’Debug.startMethodTracingSampling("tracing.trace", BUFFER_IN_BYTES, SAMPLING_IN_MICROSECONDS)’ and then you must call ’Debug.stopMethodTracing();’ for stopping recording.

Then you must pull trace file from device.

But you can't successful record before App.onCreate() is called. https://github.com/Grishberg/simple-binary-preferences/blob/master/demo/src/main/java/com/github/grishberg/simplebinarypreferences/App.java#L14

Cool. Thanks 👍