package picos
Pico scheduler framework
Install
Dune Dependency
Authors
Maintainers
Sources
picos-0.1.0.tbz
sha256=0f2dcc67ddd127c68f388f2c36a8725a15723e6aeba7d1ddfcf4e016b54a4674
sha512=bee2a99458a451be285e2f13cc3a9deda8eed4e118bcdfc51c256d2da5bae92eec3386c318fe42dcf451421543b519dc064967158b3f417c9b7b44ce97c5fb75
doc/src/picos.exn_bt/common.ml.html
Source file common.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
module type Intf = sig type t = { exn : exn; bt : Printexc.raw_backtrace } (** An exception and a backtrace. *) val get : exn -> t (** [get exn] is equivalent to [{ exn; bt = Printexc.get_raw_backtrace () }]. *) val get_callstack : int -> exn -> t (** [get_callstack n exn] is equivalent to [{ exn; bt = Printexc.get_callstack n }]. Note that [Printexc.get_callstack 0] effectively returns a constant value and this function is optimized to take that into account. *) val raise : t -> 'a (** [raise exn_bt] is equivalent to [Printexc.raise_with_backtrace exn_bt.exn exn_bt.bt]. *) end type t = { exn : exn; bt : Printexc.raw_backtrace } let get exn = let bt = Printexc.get_raw_backtrace () in { exn; bt } let empty_backtrace = Printexc.get_callstack 0 let get_callstack n exn = let bt = if n <= 0 then empty_backtrace else Printexc.get_callstack n in { exn; bt } let raise t = Printexc.raise_with_backtrace t.exn t.bt
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>