Questions tagged [systrace]

The systrace tool helps analyze the performance of an Android application.

The systrace tool helps analyze the performance of your application by capturing and displaying execution times of your applications processes and other Android system processes.

The tool combines data from the Android kernel such as the CPU scheduler, disk activity and application threads to generate an HTML report that shows an overall picture of an Android device’s system processes for a given period of time.

More info at the android developers help page.

153 questions
1
vote
1 answer

Can't see ATrace logs in logcat

I used the tracing mechanism for C++ described here by google. I'm checking for ATrace_isEnabled and while I'm getting true for ATrace_isEnabled, I'm unable to see any logs in the logcat. I also went through with this answer, but to get enabled, I…
Rohan
  • 1,705
  • 7
  • 17
  • 38
1
vote
0 answers

Android Systrace tool throwing errors

I've been having some performance problems in my Android app's rendering. The official documentation suggested me to use the "systrace" python tool to debug the app, but it's been a pain to use it. I'm using the suggested command: python systrace.py…
arvere
  • 727
  • 1
  • 7
  • 21
1
vote
0 answers

Profile GPU rendering

I'm trying to profile the redrawing of the TextView using Profile GPU rendering and systrace utils. There are two cases of redrawing. The first calls setText() when clicking on the view, the second is triggered by the rx timer Observable.interval…
Mikhail Sharin
  • 3,661
  • 3
  • 27
  • 36
1
vote
3 answers

ATrace_isEnabled() return false

I created a console program and run it in my android phone(android 6.0 and API LEVEL is 23). And it has a function named net_test, show as below. void net_test() { if (ATrace_isEnabled()) { printf("ATrace is…
maofu
  • 163
  • 2
  • 12
1
vote
0 answers

Android systrace command error

I wanted to use the systrace.py command to generate trace.html file, i used the command like this: systrace.py -t 5 -o trace.html then i got the error: ValueError: preexec_fn is not supported on Windows platforms
kp.z
  • 21
  • 3
1
vote
0 answers

chrome load trace.html with error

I have generated a trace.html file with android studio,but when i loaded that file with chrome browser,i got the error: Error:Could not find an importer for the provided eventData I have tried many solutions but failed. Can anyone give me some…
kp.z
  • 21
  • 3
1
vote
0 answers

How to use --from-file option in systrace: Always Gives error No data was captured. Output file was not written

systrace is tool which helps analyze the performance of your application by capturing and displaying execution times of your applications processes and other Android system processes. There are multiple command line options are given to capture and…
Amit Sharma
  • 1,987
  • 2
  • 18
  • 29
1
vote
1 answer

Frame Drop issue with video playback

I am experiencing frame drop issue with video playback. We just moved from ICS to KK4.4. Video is very small 320x240 resolution. There is no audio to make things simple. Systrace is at following location:…
1
vote
1 answer

Systrace output not showing graphics/surfaceflinger events

I am able to run systrace but i am not able to see the traces for SurfaceFlinger. GPU, bufferQueues, etc. I gave the following command: systrace.py --time=10 -o mynewtrace.html sched gfx view wm hal video workq Its only giving output for CPU0,…
1
vote
1 answer

Systrace Error - Analysis slices Table Not displaying on HTML Page

I have ran Systrace in Linux and generated a HTML. The HTML file got generated fine with the content. Here comes my problem : When I have selected a portion of the content in the HTML at the end of the page there should be a Analysis slices Table…
Vinay k
  • 11
  • 2
1
vote
0 answers

How to add some private trace elements on Systrace?

I`m trying to add some private trace elements to analyze them after gathering trace log by systrace. To solve it, I read about Systrace on Android 4.3, but it is only the solution on App layer using java, right? Is it possible to add more trace…
TiGi K
  • 11
  • 1
1
vote
1 answer

How do I use async_start and async_stop in systrace/atrace for Android

I want to capture Systrace report on my Android phone while doing automated testing. It is unknown how long the testing will take, so I can't specify the --time period for the Systrace. Digging deeper in to the systrace.py, I found out that…
Zythyr
  • 1,142
  • 4
  • 20
  • 33
1
vote
1 answer

Doing an Android FPS counter

I'm trying to do an FPS counter for any Android app. That means I don't have the source code for that app (I can't modify it or anything like that, I just have the .apk). I've researched a lot into this and I've found only one app that does this…
Flo
  • 11
  • 1
  • 2
1
vote
1 answer

How to read atrace data in compressed format

I am using atrace -z to get compressed trace file. Is there any way to decompress this file to recover original data
Anonymous
  • 53
  • 1
  • 7
1
vote
1 answer

Write output of android shell command to a file

I am trying to write output of atrace to sdcard. I am using getRuntime().exec()("atrace gfx > /storage/sdcard0/trace.txt") in the app.App is signed as a system app and the command is working fine from terminal.But no file is created when running it…
Anonymous
  • 53
  • 1
  • 7