Owee_locationAn abstract type representing compiled program locations. It is designed to make sampling cheap (see extract), deferring most of the work in the much more expensive lookup function (without guarantee to succeed).
val none : tA location that can never be resolved
val extract : (_ -> _) -> tSample the location from an arbitrary OCaml function. Cheap, appropriate to use on a fast path.
val lookup : t -> (string * int * int) optionTurn a location into an actual position. If it succeeds, the position is returned as a triplet (file, line, column). To succeed, debug information must be available for the location.
This call might be quite expensive.
Convenience function composing lookup and extract, to immediately turn a function into a position.
val nearest_symbol : t -> stringval nearest_demangled_symbol : t -> string