perfetto UI can see streaming data directly from linux target? #946
-
|
Hello. Environment I want to see profiling data to realtime on perfetto UI. But perfetto UI only supports ADB device. Please help me. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
|
There is no "easy & out of the box" support for streaming data over the network/USB from non-Android devices with Perfetto. If you are willing to get your hands dirty, you might want to checkout traced_relay [1] which is designed for forwarding tracing data across VMs but hypothetically should also be able to forward tracing data over the network across machines. However, note that this is completely untested and we cannot provide support for this. You are on your own to figure out this stuff if you go this route. Also just want to clarify that when collecting traces on Android, the data on the UI is not displayed "relatime" like you seem to suggest. it's just streamed to the host where it's stored in a file/in memory and then when tracing is completed the file is parsed as a whole and then opened.
No idea why running trace_processor_shell here is mentioned, it's not relevant at all really.
Which makes sense because you have specified [1] |
Beta Was this translation helpful? Give feedback.
-
|
Then is it difficult to see profiling in realtime of Android devices using perfetto UI in host PC? |
Beta Was this translation helpful? Give feedback.
-
|
I have one more question. My goal is hw perf event(pmu) and trace data(like ftrace, proc/, sys stat) show visualization at same time on realtime. |
Beta Was this translation helpful? Give feedback.
There is no "easy & out of the box" support for streaming data over the network/USB from non-Android devices with Perfetto. If you are willing to get your hands dirty, you might want to checkout traced_relay [1] which is designed for forwarding tracing data across VMs but hypothetically should also be able to forward tracing data over the network across machines. However, note that this is completely untested and we cannot provide support for this. You are on your own to figure out this stuff if you go this route.
Also just want to clarify that when collecting traces on Android, the data on the UI is not displayed "relatime" like you seem to suggest. it's just streamed to the host where i…