mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-08 20:07:55 -04:00
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.
25 lines
533 B
Text
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)))
|