问题
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, workqueues, irqs, kworker etc.
Any particular tracers we have to enable while compiling kernel? Am I missing anything else?
Thank You!
回答1:
Got the solution. The trace_marker file was not set to writeable for user space processes. After setting it using chmod 222 /sys/kernel/debug/tracing/trace_marker and doing adb shell stop adb shell start It started working.
来源:https://stackoverflow.com/questions/32348456/systrace-output-not-showing-graphics-surfaceflinger-events