Questions tagged [android-traceview]

Traceview is a graphical viewer for execution logs saved by an Android app.

Traceview is a graphical viewer for execution logs saved by your application. Traceview can help you debug your application and profile its performance.

To start Traceview, enter the following command from the SDK tools/ directory:

traceview

For more information on how to use Traceview, see [Profiling with Traceview and dmtracedump].1

53 questions
1
vote
0 answers

Android performance Optimization with Android Profiler

I know about the Android Profiler and Traceview, but I would like to know, if I can check exactly which line of code is causing the high performance usage of my app. Thank you very much!
1
vote
2 answers

Application Launch-Time to long

I've a problem with the Application Launch-Time. If I start my app (launching main activity) it took around 3-4 seconds until the app is finally displayed. I removed everything from the onCreate method so it contains only…
RyuZz
  • 581
  • 8
  • 30
1
vote
1 answer

Strange gaps in DDMS trace

I am analysing the profile information using the DDMS trace view. I have notice that many of my slower functions appear to have strange gaps in the middle of them (see image)... its as if they decided to take a rest half way through and start up…
Mick
  • 8,284
  • 22
  • 81
  • 173
1
vote
0 answers

TraceView file has no data

I have added Debug.startMethodTracing("can_act"); in onCreate and Debug.stopMethodTracing(); in onDestroy.The trace file is of size 0KB. What went wrong? EDIT: It writes out a trace file but it is of size 0 KB.I use the methods in a custom Camera…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
1
vote
0 answers

Android traceview - behavior on Android 3.2 vs. 4.1

This question is not about the meaning of the data columns presented by traceview - I think I understand that. I noticed a couple of things when looking a traces in traceview captured on an Android 3.2 devices vs. an Android 4.1 device. My question…
David Stone
  • 1,132
  • 7
  • 18
1
vote
0 answers

Open .trace file

I'm using Eclipse Juno. I created a trace file and I can see this file in my Android file explorer. How can I open it now?
user1939400
  • 51
  • 2
  • 9
1
vote
2 answers

android traceview

I made an application and I wanted to see if I can improve performance by running a traceview on a certain activity + it's background tasks. This link points to an image from traceview. As you can see there are 2 colors that are taking the most time…
PoeHaH
  • 1,936
  • 3
  • 28
  • 52
1
vote
0 answers

Traceview — scroll not working

When running Traceview from command line a java UI appears. My problem is that I can't scroll the views. I see the orange scroll indicator but can't click on it in order to move it (a larger arrow box doesn't appear so I can't touch it and scroll…
AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277
1
vote
3 answers

Why does traceview give inconsistent measurements?

I am trying to speed up my app start-up time (currently ~5 seconds due to slow Guice binding), and when I run traceview I'm seeing pretty big variations (as high as 30%) in measurements from executions of the same code. I would assume this is from…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
0
votes
0 answers

How to ignore failed test in Android macrobenchmark

I create some macrobenchmark test on Android. And refer to the Android documentation, i can run all the benchmark tests using single gradle command below: ./gradlew :macrobenchmark:connectedCheck However, some tests are FAILED and stop the…
fanjavaid
  • 1,676
  • 8
  • 34
  • 65
0
votes
0 answers

Android debug traces do not contain all method?

I use Debug#startMethodTracing(in Activity#onCreate) and Debug#stopMethodTracing(in Activity#onWindowFocusChanged) to get method call traces. But I can not find ViewRootImpl#performTraversals in trace in Monitor. What's wrong?
Egos Zhang
  • 1,334
  • 10
  • 18
0
votes
0 answers

Activity transition is slow, but method profiling does not show anything abnormal

I have an activity where entering it is time-costly (around 1 second). I tried using DDMS to track what was happening during activity transition. I started the track, press the button where it starts the new activity, and then stop the…
Sira Lam
  • 5,179
  • 3
  • 34
  • 68
0
votes
1 answer

android traceview asynchronous events

I'd like to use traceview to measure performance for several asynchronous events. The asynchronous events are passed to me in a callback that looks similar to the below code. interface EventCallback { void onStartEvent(String name); void…
Jon
  • 1,381
  • 3
  • 16
  • 41
0
votes
1 answer

How to understanding "Calls+RecurCalls/Total" in Android TraceView tool

In many article, Calls+Recur Calls/Total is simply explained as "the number of calls and repeat calls". Yes, it could clearly explain the meaning of values like "1 + 0", but I can not get to know the meaning for values like "1/441". See attached
LiangWang
  • 8,038
  • 8
  • 41
  • 54
0
votes
1 answer

Measuring Activity start time using method tracing inaccurate?

My activity (that uses camera) starts quite slowly, according to Logcat: 08-21 21:51:56.672: I/ActivityManager(488): Displayed com.blabla/.activities.TakePhotoActivity: +1s472ms So I decided to use method profiling to see where the problem is (this…
user2011769
  • 153
  • 1
  • 9