Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a leaner perfetto trace format; Fuschia Trace Format or Perfetto Protobuf #13

Open
Tracked by #8
lucamuscat opened this issue Dec 26, 2024 · 0 comments
Open
Tracked by #8
Labels

Comments

@lucamuscat
Copy link
Owner

The JSON Chrome Trace Event Format is a simple JSON data format which can be vizualized by Perfetto. The JSON format trades serialization performance & payload size for simplicity. Unlike speedscope's format, which is an alternative trace format, the JSON Chrome Trace Event Format does not make use of basic compaction techniques, such as string interning.

The following document is a survey on existing trace formats similar to perfetto.

Perfetto natively supports two other trace formats, which are the Fuschia Trace Format (FTF), & the Protobuf trace format. Tristan Hume's blog post on tracing tools provides a short & sweet summary on these formats. In short, they are both compact binary formats. The protobuf feature comes with more features, but is only documented through its protobuf files, & requires protobuf, which is not a small dependency.

Investigate both FTF & the Protobuf Trace format, & start outputting trace files in one of these formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant