ocaml-trace/src/perfetto/dune
Simon Cruanes 5e69650534
add perfetto with single .proto file, parts of it commented
we only want to encode data, and only part of it, so we can skip
some java-specific messages, as well as the whole Ftrace subsystem.
2025-11-04 13:21:49 -05:00

25 lines
533 B
Text

(library
(name trace_perfetto)
(public_name trace-perfetto)
(synopsis
"A high-performance backend for trace, emitting a Fuchsia trace into a file")
(libraries
trace.core
trace.private.util
trace.subscriber
thread-local-storage
mtime
mtime.clock.os
pbrt
))
(rule
(alias lint)
(mode promote)
(enabled_if %{env:FORCE_GENPROTO=false})
(targets perfetto_trace.ml perfetto_trace.mli)
(deps
(:file perfetto_trace.proto))
(action
(run ocaml-protoc %{file} --ml_out . --encode-only --pp --make --binary)))