perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

Support for Fuchsia FXT Log record (record type = 9)

Open vshymanskyy opened this issue 2 years ago • 5 comments

I have generated a simple fxt file with some log records, and it looks like Perfetto just ignores them. trace.fxt.zip

vshymanskyy avatar Oct 20 '23 13:10 vshymanskyy

The Fuchsia parser is maintained by the Fuchsia team so we would need their input. @bhamrick-google do you know who the best person would be?

chromy avatar Oct 20 '23 13:10 chromy

There's a few people on the team who could take this. I'll check internally. For context on priority, is there a particular use case where log record support is wanted or is this coming from something like going through the trace format and seeing which record types are supported?

bhamrick-google avatar Oct 23 '23 16:10 bhamrick-google

Thanks for a quick reply. I see 2 majour uses for the tracing mechanism:

  • profiling
  • efficient logging

i.e. many software components come with some logging capability, so it would be convenient to have a combined view of logs and other events. Logs can also provide more context and allow for easier navigation.

I use a specific setup where logs are emitted in a short form (i.e. just the message id is encoded), and the traces are post-processed using a Python script on the host:

  • addr2line is performed on some pointers
  • log ids are transformed into Log records
  • etc

At the moment, i was able to show my logs in a form of Instant Events, which is sub-optimal.

vshymanskyy avatar Oct 23 '23 20:10 vshymanskyy

Just a quick update: One of our team members had already planned to look at adding log event support to Perfetto. It's not at the top of their priority list, so don't expect immediate work, but we're hoping to get to it in a time on the order of months.

bhamrick-google avatar Oct 26 '23 20:10 bhamrick-google

Thanks. Appreciate it

vshymanskyy avatar Oct 26 '23 20:10 vshymanskyy