val create : Reader.Header.t ‑> [< _ Core.perms ] t
val add_interest : Core.read_write t ‑> Core_profiler.Probe_id.t Interest.t ‑> unit
val test : [> Core.read ] t ‑> Event_generator.event ‑> Core_profiler.Probe_id.t Interest.t list
Which interests does this event match?
val iter_events : [> Core.read ] t ‑> Event_generator.t ‑> f:(Event_generator.event ‑> Core_profiler.Probe_id.t Interest.t list ‑> unit) ‑> unit
f
is given the event, and the interests it matched
val iter_events_interests : [> Core.read ] t ‑> Event_generator.t ‑> f:(Event_generator.event ‑> Core_profiler.Probe_id.t Interest.t ‑> unit) ‑> unit
val raw_interests : [> Core.read ] t ‑> Core_profiler.Probe_id.t Interest.Raw.t list
All raw interests the filter is (currently) interested in receiving events for.
In the basic case, you'll want to construct a t
(a filter), and then build a
Event_generator.t
using the raw interests specified by this function.