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
25
votes
0 answers

Android Studio CPU Profiler - start recording an app launch

I want to get a method trace while cold starting my app. According to CPU Profiler docs, I need to click on the Record button on the CPU Profiler to start a method trace recording, however I want this recording on the app from the instant the new…
marmor
  • 27,641
  • 11
  • 107
  • 150
18
votes
6 answers

Android Profiler stuck in loading

I am trying to opening Profiler but it's not working as it stucks in loading, I have Android Studio 3.3. Profiler stuck in loading I am using this real device..
Muhammad Aseel
  • 230
  • 2
  • 9
15
votes
7 answers

Android Profiling is unavailable for the selected process, but advanced profiling is enabled

I am developing an Android app with multiple modules. The app uses ProGuard, compileSdkVersion is set to 27 in all modules, and when I tried to enable Advanced Profiling I continue to get a message saying "Advanced profiling is unavailable for the…
14
votes
6 answers

Profiler cannot detect my device

I am using Android Studio 3.1.3 and deploying my app on Lenovo Phab PB1-770M, (Android 5.1.1, API 22). Since yesterday, Android profiler has stopped detecting my device and even though I am able to run and debug on my device using AS, Profiler just…
Rajan Prasad
  • 1,582
  • 1
  • 16
  • 33
14
votes
2 answers

Android studio 3.0: Studio Profilers encountered an unexpected error

My application runs perfectly. But my logcat give an error every time when I run my application: 12-11 20:45:42.539 946-1547/package E/StudioProfiler: Studio Profilers encountered an unexpected error. Consider reporting a bug, including logcat…
13
votes
1 answer

Why "Code" and "Native" sections in Memory Profiler use too much memory and how can I reduce it?

My app uses 75MB memory when the user opens it for the first time. I have used Android Profiler Tool from Android Studio to examine memory usage of my Android app. When the main screen opens up, the app starts using 75MB memory even though the main…
cezmi sakar
  • 191
  • 1
  • 9
12
votes
1 answer

Size of native memory in Android Profiler

In Android Studio Profiler, there are two places which display the size of native memory occupied by an app. The first place is in the horizontal bar. Profiler documentation describes this as: "Native: Memory from objects allocated from C or C++…
camcam
  • 2,585
  • 8
  • 49
  • 65
11
votes
1 answer

How to treat memory leaks using the new AndroidProfiler

I'm trying to learn how to identify and treat memory leaks in my App. I'm reading this great article, but I'm a bit confused about how to apply that in the new "Android Profiler" tool, that came with Android Studio 3.0. I'have a test application and…
8
votes
2 answers

Android Studio Profiler Memory Allocated N/A

Hi I am unable to view the allocated memory for my application when running the app on a real device/emulator, The profiler shows Allocated as N/A below is the screenshot on how it looks, I am running android studio version 3.3.2, Is there…
8
votes
2 answers

Android Studio 3.2: Can't find the Analyzer Tasks pane when opening an HPROF dump file

I'm trying to analyze an app for memory leaks using the Android Profiler. Most online tutorials (and answers on this site) say to create a heap dump, save it with the .hprof extension, and then open this in Android Studio. I'm able to do that but…
AlexH
  • 1,087
  • 2
  • 10
  • 29
8
votes
3 answers

android studio 3.0.1 taking forever to fetch results of memory allocation in android profiler

I'm trying to profile my app's memory allocations but android studio is taking very long time to fetch results of allocation recording (in fact it's been 45 min and ITS STILL FETCHING !!!) here's a screenshot JUST LOOK AT THE TIME
7
votes
1 answer

How to Find Unwanted References in Android Using Android Profiler

I'm trying to get better at hunting down memory leaks in Android. I have discovered the Android Profiler and learned how to perform a heap dump and how to determine if there are too many instances of a given object in memory. I have read that one of…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
6
votes
1 answer

Energy consumption on Android Studio Profiler

In Android Studio 3.2 there is a Profiler that let you know what is the energy consumption of your application. We suspect a slow energy leak due to our application that reduces the battery autonomy of several hours. With the Profiler we can say…
Philiz
  • 429
  • 5
  • 25
6
votes
0 answers

Android Profiler vs Java API level memory calculation

AFAIK android assigns heap limit based on OEM or Screen resolution of device and RAM it self. ex: samsung s5 128mb is limit. How to get current memory usage in android? Whereas the android Profiler shows that my app is eating more memory than >…
NitZRobotKoder
  • 1,046
  • 8
  • 44
  • 74
5
votes
2 answers

Performance issues when running Android Studio Profiler: The IDE is running low on memory

When running Android Studio Profiler I get this message at the bottom after generating two or three "heap dumps": The IDE is running low on memory and this might affect performance. Please consider increasing available heap. My PC runs really slow…
Pablo Alfonso
  • 2,317
  • 1
  • 18
  • 24
1
2 3
8 9