Unable to Connect to traced_consumer Socket in Perfetto on Android #964
-
I created a demo application to integrate Perfetto tracing. Here’s what I did:
Additionally, I observed the following log in my Android logcat:
Questions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
There are multiple parts to your question so let me go through one by one:
If you are trying to use the consumer side of Perfetto from your app, why are you using the
The answer to this needs me to understand what you are doing above.
The consumer side of Perfetto is not designed for direct use by apps. The producer side is accessible to everyone. I'd suggest checking out https://perfetto.dev/docs/design-docs/security-model which goes into the purpose of each side and why the security model is the way it is. Note the following though:
|
Beta Was this translation helpful? Give feedback.
There are multiple parts to your question so let me go through one by one:
If you are trying to use the consumer side of Perfetto from your app, why are you using the
adb shell perfetto
command? The two things are mutually exclusive: either you are using perfetto_cmd as your consumer or your own app as your consumer. You cannot be doing both.The answer to this needs me to understand what you are doing above.