Spacetime.Snapshot(3)
β¨ NAME β¨
Spacetime.Snapshot β and the description? bestie, it literally says no description. That's the whole NAME section, no notes, no extras. We're in the OCaml library manual, page Spacetime.Snapshot(3), and it's giving minimal icon behavior π.
π§© Module π§©
The module in question is Spacetime.Snapshot. That's it, that's the module. π«Ά
π Documentation π
Okay so inside the docs, the module shape is literally this:
Module Snapshot
: sig end
And then there's exactly one value, the main character:
val take : ?time:float -> Spacetime.Series.t -> unit
π
val take π
take series takes a snapshot of the profiling annotations on the values in the minor and major heaps, together with GC stats, and writes the result to the series file. πΎβ¨
Heads up: this function triggers a minor GC, but it does not allocate any memory itself. No extra allocation, periodt.
If the optional time is specified, it will be used instead of the result of Sys.time as the timestamp of the snapshot. Those times should start from zero and be monotonically increasing. π
This parameter is intended to be used so that snapshots can be correlated against wall clock time (which is not supported in the standard library) rather than elapsed CPU time. iykyk π°οΈ
okay bestie that's the whole page β brought to you by OCamldoc, dated 2022-03-11, and signed Spacetime.Snapshot(3) πβ¨
π¦ 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