Spacetime.Series(3)
π NAME π
Okay bestie, this is the Spacetime.Series(3) page from the OCaml library manual, and the name block is literally just: Spacetime.Series β no description π. That's the whole name vibe. Don't shoot the messenger.
π§ Module π§
The module is Spacetime.Series. Inner-module moment incoming.
β¨ Documentation β¨
Module Series
: sig end
π¦ type t π¦
type t
This is the type that represents a file which will hold a series of heap snapshots, together with the additional information required to interpret those snapshots. Iconic file energy, honestly.
πΈ val create : path:string -> t πΈ
val create : path:string -> t
create ~path creates a series file at path. Simple slay.
π«Ά val save_event : ?time:float -> t -> event_name:string -> unit π«Ά
val save_event : ?time:float -> t -> event_name:string -> unit
save_event writes an event into the given series file. An event is just an arbitrary string, no cap. This may be used for identifying particular points during program execution when analysing the profile. The optional time parameter is as for Spacetime.Snapshot.take.
π val save_and_close : ?time:float -> t -> unit π
val save_and_close : ?time:float -> t -> unit
save_and_close series writes information into series required for interpreting the snapshots that series contains, and then closes the series file.
π¨ Bestie, listen: this function must be called to produce a valid series file. No skipping, no βI'll do it laterβ, no cap. The optionaltimeparameter is as forSpacetime.Snapshot.take.
π That's the whole page. Source/version: OCamldoc; date: 2022-03-11. Go forth and make a valid series file, bestie! π«Άπ
π¦ where this page comes from
- centos-stream 9: ocaml-docs 4.11.1-5.el9.2 Β· QPL and (LGPLv2+ with exceptions)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms