package memtrace

  1. Overview
  2. Docs

Module Trace.WriterSource

Writing traces

Sourcetype t
Sourceval create : Unix.file_descr -> ?getpid:(unit -> int64) -> Info.t -> t

All of the functions below may raise Unix_error if writing to the file descriptor fails

Sourceval put_alloc : t -> Timestamp.t -> length:int -> nsamples:int -> is_major:bool -> callstack:Location_code.t array -> decode_callstack_entry:(Location_code.t -> Location.t list) -> Obj_id.t
Sourceval put_alloc_with_raw_backtrace : t -> Timestamp.t -> length:int -> nsamples:int -> is_major:bool -> callstack:Printexc.raw_backtrace -> Obj_id.t
Sourceval put_collect : t -> Timestamp.t -> Obj_id.t -> unit
Sourceval put_promote : t -> Timestamp.t -> Obj_id.t -> unit
Sourceval put_event : t -> decode_callstack_entry:(Location_code.t -> Location.t list) -> Timestamp.t -> Event.t -> unit
Sourceval flush : t -> unit
Sourceval close : t -> unit
OCaml

Innovation. Community. Security.