Skip to content

Using perfetto for network traffic #1030

Closed Answered by LalitMaganti
yehuday asked this question in Q&A

You must be logged in to vote

Please read https://docs.google.com/document/u/0/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/mobilebasic

The very important part of this is this quote:

It is not possible to have non-nested duration events for a given thread. If you need to have durations that do not nest property you should use Async events instead.

Given you mention tids it seems very very likely to me that you are emitting X or B/E events. You should follow the advice there and instead emit async events instead as it says.

Alternatively you could emit the Perfetto native protobuf format instead which supports this sort of thing much more explicitly than hacking things using pids:
https://perfetto.dev/docs/referenc…

Replies: 7 comments 2 replies

You must be logged in to vote
0 replies
Answer selected by LalitMaganti

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@LalitMaganti

You must be logged in to vote
1 reply
@LalitMaganti

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants