Questions tagged [android-profiler]

Questions related to new Android-Profiling, including monitoring apps CPU, memory, and network activity. This also includes analyzing captured heap dumps, viewing memory allocations, and inspect the details of network-transmitted files.

The new Android Profiler window in Android Studio 3.0 replaces the Android Monitor tools. These new profiling tools provide realtime data for your app's CPU, memory, and network activity. You can perform sample-based method tracing to time your code execution, capture heap dumps, view memory allocations, and inspect the details of network-transmitted files.

Read more here.

122 questions
5
votes
1 answer

How do you start the app with the profiler in "trace java methods" mode?

We are ready to optimise app startup time. The ultimate goal is to, quote cold start into fragment X as quickly as the calculator is starting up I do have a few ideas on what we could tweak to try and speed up loading, but I'd like to verify them…
User1291
  • 7,664
  • 8
  • 51
  • 108
5
votes
1 answer

What takes up graphics memory in Android Profiler?

When I used Android profiler I noticed that graphics were Taking a lot of memory (169 mb) which was making the app extremely slow , and I though that it was caused by Bitmaps so I deleted all the bitmaps in the app and tried again.. and I noticed…
4
votes
2 answers

Android Studio 3.3, Advanced Profiling is Unavailable for the Selected Process

I updated my android studio to version 3.3 and stuck with the android profiler problem "Advanced profiling is unavailable for the selected process". I have tried the followings but nothing worked Run Configuration -> Enable advanced profiling…
shehzy
  • 2,215
  • 3
  • 25
  • 45
4
votes
1 answer

Android Ndk - Setting a name for a C++ thread

I'm trying to profile my code using the Android Profiler. The problem is naming my C++ threads, I've tried using: pthread_setname_np(pthread_self(), "MyThread"); But it doesn't show the specified name. How can I name my C++ thread on Android?
4
votes
0 answers

Empty request body on "Android Profiler"

Previously using okhttp interceptor, a complete json request was printed on "Android Monitor" portion of the android studio. Now after updating android studio to 3.1, there is "Android Profiler" option in place of the "Android Monitor" to log…
shehzy
  • 2,215
  • 3
  • 25
  • 45
4
votes
0 answers

In Android Studio 3.0.1 an Android Profiler can't find Genymotion device

Today I updated my Android Studio from 2.1.2 to 3.0.1. After this I saw that Google introduced new tool named Android Profiler instead of Android Monitor. But it doesn't working with Genymotion devices on my PC. Note that studio sees the Genymotion…
Trancer
  • 765
  • 2
  • 8
  • 23
3
votes
1 answer

"No debuggable process" is shown in Android Studio Profiler

When I try to use profiler in Android Studio, I am able to see my connected device but I am getting "No debuggable process" in the Profiler. Can someone please help me why i am getting "No debuggable process".
Arun
  • 71
  • 2
  • 6
3
votes
1 answer

Android Studio Network Profiler : impossible to select a range on the network activity graph

I am trying to use to use the network profiler but I am unable to select a portion of the graph in order to see the content of the network packets. I saw this answer and I activated the advanced profiling but as expected it changed nothing (as…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
3
votes
0 answers

Android Studio - CPU profiler .trace = "CPU usage details not available"

How to see the graph data of the stored .trace file in Android studio. The .trace file is showing the parsed information and the graph, but when I load a stored file, its not loading the graph and is throwing an error "CPU usage details not…
Angus
  • 12,133
  • 29
  • 96
  • 151
3
votes
0 answers

How to export Android Profiler CPU usage

Is there a method to export this cpu % usage to file, where can i for ex. measure the mean % cpu usage? Screen
2
votes
1 answer

Find the View and container Fargment information from Click event captures in profiler

I am profiling a new application I am working with. I can see the captured pink circle, I want to find out where the view is ,In which fragment and where the click listener is defined. Here I can only see the activity information. It's a big…
Vikas Pandey
  • 1,115
  • 1
  • 15
  • 25
2
votes
1 answer

How to use profileable process in Android Studio Profiler?

I have downloaded a performance-samples project from Github (https://github.com/android/performance-samples/tree/main/JankStatsSample) but do not see a (profileable) process, as shown in below image. Mine is only showing (debuggable). I am using…
mars8
  • 770
  • 1
  • 11
  • 25
2
votes
2 answers

Android Studio Profiler shows 100 MB of memory usage for empty activity

I'm using Android Studio Profiler to check and optimize memory consumption. to do some tests, I have disabled every section in the app except for the main activity. so when the app launches, there is only a blank activity which does not do anything…
2
votes
1 answer

CPU utilisation curve from perfetto trace

I wanted to trace the CPU and memory utilization of one of my algorithm on a mobile device. So far I have implemented it in Android as an app and collected the resource utilization trace using Android profiler as a trace file (filename.trace). I…
2
votes
0 answers

App keeps crashing with Android studio 4.0 profiler continuously

I am not able to profile app with android studio 4.0 profiler. The app is continuously crashing. Could you please help? The Heap size is 4096 MB and the utilization I see at the time of crash is close to 899 MB.
1
2
3
8 9