Trace Converter currently uses hand-rolled integration with Protobuf, allowing it to write Gradle's build operation traces in Perfetto format.
However, the current implementation requires non-trivial setup, including a large amount of Protobuf schemas to be present.
This complexity can be abstracted away by using dedicated libraries like androidx.tracing
There was an initially attempt of experimentally integrating this directly into Gradle, and it might be useful as a reference:
Trace Converter currently uses hand-rolled integration with Protobuf, allowing it to write Gradle's build operation traces in Perfetto format.
However, the current implementation requires non-trivial setup, including a large amount of Protobuf schemas to be present.
This complexity can be abstracted away by using dedicated libraries like
androidx.tracingThere was an initially attempt of experimentally integrating this directly into Gradle, and it might be useful as a reference: