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
0
votes
1 answer

android how to dynamically get memory usage of the app like showing with android studio profiler

using the getRuntimeMemoryUsage() to get memory usage from Runtime.getRuntime() but when compare with the profiler couldn't find the match. i.e. the profiler memory's java shows 22MB but the code getRuntimeMemoryUsage() return 12MB. How to get the…
lannyf
  • 9,865
  • 12
  • 70
  • 152
0
votes
0 answers

There is a leak in the Activity but which part of the code takes a reference to the Activity? is it detectable from Android-Profiler?

In an Android application, I have found that one of the activities has memory leak Leak canary shows the leak and Android Profiler shows the leak too As you can see in the figure, there are 2 instances of Warrior_TypeA_Activity which indicates…
0
votes
0 answers

Constant object allocation in Memory Profiler

My app is always allocating objects while running. When it runs idle, the colored memory graphs in Memory Profiler are staying flat. But the white dashed line of allocated objects is constantly growing. It starts at 110K, reaching 250K and more. GC…
Andrey Rankov
  • 1,964
  • 2
  • 17
  • 33
0
votes
3 answers

My app is showing "The application may be doing too much work on its main thread.", and I don't know what part of the code is causing this

Well, I'm new to Android coding and I'm developing an app to teach how to plant some plants/flower. I'm using the SQLite Database for storing the data, but I'm calling the information in class by cursors, I don't know how to do it other than this,…
Yuugen
  • 3
  • 3
0
votes
1 answer

Why my Java method is not listed in CPU-Profiler in AndroidStudio3.5.1?

I am doing cpu-profiling using Android Studio3.5.1 using Android-Profiler using Sample Java Method option.When a non-optimised version of a method i use, method get listed in method trace pane. But when i try with optimised version of same method…
CodeWithVikas
  • 1,105
  • 9
  • 33
0
votes
1 answer

Android Profiler does not load?

Android Profiler in my android studio does not load the details on running the app in the emulator. I have tried running the app in debug mode, restarted emulator, android studio and PC as well. Nothing worked.
ar3
  • 369
  • 1
  • 4
  • 18
0
votes
1 answer

Taking nearly 400 MB of memory at android app startup

First of all, I have seen other questions which might be a duplicate of mine. But none of them could provide me with solution. There is too much memory consumption at the app startup compared to when it is reached in MainActivity. At Application…
Daniel Jr McCoy
  • 157
  • 1
  • 15
0
votes
0 answers

Android - Are these values normal for an app?

I need to say i'm very new to android. Lately in my recycler view when i load over 100 items (mostly pictures) my app first lags then closes itself without error message. These are profiler values. What i want to know is are these values normal? if…
uzaysan
  • 583
  • 1
  • 4
  • 18
0
votes
0 answers

Identifying Memory Leaks

I have captured the heap dump using the Android Studio Memory Profiler. I know how to check the Leak Activity using the heap dump. I want to check memory leak Not in Activity only as my app contains less activity and most of the operations do not…
Hey You
  • 303
  • 3
  • 16
0
votes
2 answers

Can we format JSON response in Android Network Profiler panel?

I want to get formatted JSON response in Android Network Profiler rather than copy and paste to other tools to format JSON response. Android Network Profiler is a convenient tool to inspect network traffic. But I can't read the response data…
Kiwi Lin
  • 771
  • 8
  • 15
0
votes
1 answer

Android fragments with observables. When to add vs replace other fragments

Another Fragment question. For context: Single activity application with two fragments, Home and Settings. My activity immediately adds Home when the app starts. On this screen the user can tap a settings icon to view the Settings fragment. It is…
0
votes
1 answer

activity rotate deallocation

I have created a hello world simple activity and I started.I look at android profiler , When I rotate screen , in the heap (android profiler monitor) totally 2 MainActivity are shown . why first activity did not dealloc?
ahmetvefa53
  • 581
  • 6
  • 20
0
votes
0 answers

How to decrease memory allocation?

I am writing an android application. Because of the aim, I have to (insert)cache my 10 mb sized userlist to sqlite db. When the user trigger api call I send the inputstream to BufferedReader and use char[] buffer = new char[2048]; as chunk because…
m3rt_ali
  • 73
  • 1
  • 9
0
votes
1 answer

Difference between 'Run' App and 'Profile' App option in android studio 3.0

In android studio 3.0 there are two options(Run and Profile) available to run the application. Both are functioning like the same thing and behaviour. See below screenshot: and My question is what's the actual activities between the Run and…
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
-1
votes
1 answer

How run android APK on Android Profiler?

I followed this tutorial to run an apk on Android Profiler but it doen't work to me. I did all the step one by one. I couldn't do the number 8: "Go to Project Settings> Modules, select the application -Signed node and click (No SDK)" because the…
David Zomada
  • 167
  • 1
  • 5
  • 22
1 2 3
8
9