for example when I record a systrace using the following command line:
python systrace.py -o mytrace.html -a my.app.package.name -t 45
instead of showing data for the entire 45 seconds it only shows 5.6 seconds. I have a similar issue when i trigger systrace the Android Studio profiler.
The trace data probably filled up the buffer (8 MB by default). You can set a bigger buffer size by using the
-b Nor--buf-size=Ncommand option, whereNis the number of kilobytes.Alternatively you can use Android Studio Profiler to record a System Trace, which lets you config buffer size in the IDE. The
systracepython script is deprecated and not actively maintained.