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

Running systrace gives "preexec_fn is not supported on Windows" error

I'm trying to use Android's Systrace feature as described here and here but when I run the command line described in the above links, it gives me this error : File "C:\Python27\lib\subprocess.py", line 664, in __init__ raise ValueError("preexec_fn…
MHogge
  • 5,408
  • 15
  • 61
  • 104
5
votes
0 answers

Unable to systrace on HTC One M8 Lollipop

I am trying to use systrace from Android Studio with the default systrace options set. I have not rooted the phone. HTC Sense v6.0, Android 5.0.1, HTC SDK API level 6.55. When I do so, I get the dreaded "Unable to collect system trace. Reason:…
Mark Rosenberg
  • 153
  • 1
  • 7
5
votes
3 answers

Using systrace in application code android

The documentation in android says you can use the methods of the Trace class to add instrumentation to your application code and see the results in a Systrace report. I have added the below methods to my code Trace.beginSection("test-trace"); …
Revanth Gopi
  • 350
  • 4
  • 14
5
votes
1 answer

Does Android systrace require root access?

I am trying to run systrace on a non-rooted device. It always gives the following error if any of the trace events is selected: Unable to find trace start marker 'TRACE:': error opening /sys/kernel/debug/tracing/events/cpufreq_interactive/enable: No…
arsalank2
  • 1,683
  • 1
  • 16
  • 25
5
votes
1 answer

The html file created by Systrace blank

I followed the tutorial of systrace on Jelly Bean from Android developer systrace The procedure seems right, and create a html file for me, but it displays nothing in browser which is just blank. I can see lots of source code in html file. I tried…
f_genius
  • 51
  • 2
4
votes
1 answer

Unable to find `systrace.py` on my local android sdk folder

How can I get systrace.py on my local android sdk folder as I'm unable to find the file at /tools and /platform-tools? Below is the image for current SDKs installed on my local machine. Following is the image for the current contents available for…
4
votes
0 answers

React Native Android Systrace JS marker support

React native Android JS level markers are not nearly as useful as the ones present in IOS (see https://www.youtube.com/watch?v=0MlT74erp60). There are couple of things I have observed as of RN 0.29-stable on React native repo on github. 1) Logging…
jay shah
  • 903
  • 6
  • 21
4
votes
1 answer

Android: Difference between traceview and systrace tool

I''m learning to use those tools for performance profile. I have read Android document about both traceview and systrace but I don't see any main difference. They both have very same GUI: A timeline and all components on the left behave on this time…
Trần Kim Dự
  • 5,872
  • 12
  • 55
  • 107
4
votes
4 answers

LD_PRELOAD can not intercept syscalls, but only libcalls?

My code works well with malloc, but not with mmap. The code is below: main.c #include #include int main(){ int * p = (int*) malloc(sizeof(int)); printf("in main(): value p = %d\n", *p); free(p); } preload.c #define…
Richard
  • 14,642
  • 18
  • 56
  • 77
4
votes
1 answer

Reading systrace log

I know this is asked before but I am afraid "systrace uses atrace which extends ftrace, so check ftrace format here" is not enough for me. I am after more details on some systrace specific tag/formats. I have some guesses which I have little…
xiay
  • 855
  • 8
  • 19
3
votes
0 answers

Why is SurfaceFlinger still using 5ms of CPU time per frame with Hardware Composer?

I'm trying to run a challenging and latency-senstive application at 60 fps on as many android devices as possible. It involves processing live frames from the camera (ideally also at 60 fps) along with rendering additional graphics on top with…
tangobravo
  • 898
  • 10
  • 24
3
votes
1 answer

systrace: can't create /sys/kernel/debug/tracing/trace_marker: No such file or directory

I try to do a systrace of a react native app running on android: /home/a/Android/Sdk/platform-tools/systrace/systrace.py --time=5 -o trace.html sched gfx view -a com.mypackage This is the error I get, but trace_markers seem to be defect: These…
Stuck
  • 11,225
  • 11
  • 59
  • 104
3
votes
0 answers

Systrace fails with "Permission Denied"

When I try to run Systrace, i get this stacktrace: python systrace.py --app=com.mydebug.app view gfx sched dalvik wm Starting tracing (stop with enter) Tracing completed. Collecting output... CRITICAL:root:(TimeoutThread-1-for-Thread-1) Exception…
user8369473
3
votes
5 answers

Systrace by Command Line error

i am trying to use of systrace. for this, i am reading official site. but after run this command on terminal : D:\Software\Android\android-sdk\platform-tools\systrace>python systrace.py --time=10 -o mynewtrace.html sched gfx view wm I got these…
sayres kabir
  • 362
  • 4
  • 22
3
votes
1 answer

Systrace no longer works on Nexus 6 in Marshmallow because of SELinux? Has anyone got it working again?

I used to be able to run systrace on my Nexus 6, but recently it stopped working (probably after one of the recent monthly updates): systrace hangs trying to download the trace off my device. In adb logcat, I see a bunch of lines like 05-26…
Foxichu
  • 952
  • 10
  • 22
1 2
3
10 11