package eio

  1. Overview
  2. Docs
Effect-based direct-style IO API for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

eio-0.8.1.tbz
sha256=c4222f9b081465486a1c1a8dde6aa00178936d7c7b3a8565e0883a421e0e3547
sha512=d63d8b9500b492be93df4f29159aa6955588ca1e35e6a5817856e32ee4fec3395604dc7b64fc5a973ee8bd436bd65831e7b08fca9bf909f41afec4a65c4443b8

doc/eio.unix/Eio_unix/Ctf/index.html

Module Eio_unix.CtfSource

Sourceval timestamper : Eio.Private.Ctf.log_buffer -> int -> unit

Uses Mtime_clock to write timestamps.

Sourceval mmap_buffer : size:int -> string -> Eio.Private.Ctf.log_buffer

mmap_buffer ~size path initialises file path as an empty buffer for tracing.

Sourceval with_tracing : ?size:int -> string -> (unit -> 'a) -> 'a

with_tracing path fn is a convenience function that uses mmap_buffer to create a log buffer, calls Ctf.Control.start to start recording, runs fn, and then stops recording.

OCaml

Innovation. Community. Security.