Profile(3)
π NAME π
Profile(3) β compiler performance recording, straight from the OCaml library. This is the Profile manual page, and we're gonna make it make sense π.
π§ Module π§
Module Profile
β¨ Documentation β¨
The module signature is:
Module Profile
: sig end
Compiler performance recording. That's the whole vibe of this module β¨.
Warning: this module is unstable and part of Compiler_libs. Like, be aware, bestie.
type file = stringβ the type is literally juststring. No cap.val reset : unit -> unitβ erases all recorded profile information. Poof, gone π .val record_call : ?accumulate:bool -> string -> (unit -> 'a) -> 'aβ takes an optional?accumulate:bool, a string pass name, and a(unit -> 'a)thunk. It callsfand records its profile information. Slay.val record : ?accumulate:bool -> string -> ('a -> 'b) -> 'a -> 'bβ takes an optional?accumulate:bool, a string pass name, a function('a -> 'b), and an arg. It records the profile information off arg. Iconic.type columnβ the exact type istype column = [ `Abs_top_heap | `Alloc | `Time | `Top_heap ]β those four tags are the possible columns π«Ά.val print : Format.formatter -> column list -> unitβ prints the selected recorded profiling information to the formatter. Main character energy for your output β¨.val options_doc : stringβ it's astring; that's all the manual gives us here, bestie.val all_columns : column listβ it's acolumn list; again, the type is the whole story π₯.
π Command line flags π
A few pass names that are needed in several places, and shared to avoid typos. Periodt.
val generate : stringβ astringpass name.val transl : stringβ astringpass name.val typing : stringβ astringpass name.
Later, bestie π«Ά This page is from OCamldoc, dated 2026-06-22 β and yep, it's the Profile(3) page. π
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms