package magic-trace
Collects and displays high-resolution traces of what a process is doing
Install
Dune Dependency
Authors
Maintainers
Sources
v1.0.1.tar.gz
sha256=77b2e4b3bc769910656d0fdee4839250548aa49486fd3554f6c057f1d64abe99
sha512=1f111db6348673c22a110611182a92c8aa999668dc077c44bc4abcaa72ccb197899ff2577047888627b50fcc9890824de6c82b4fe9f06129190b8b487ec3f716
doc/src/magic-trace.magic_trace_core/when_to_snapshot.ml.html
Source file when_to_snapshot.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 34 35 36 37
open! Core type which_function = | Use_fzf_to_select_one | User_selected of string type t = | Magic_trace_or_the_application_terminates | Application_calls_a_function of which_function let param = let open Command.Param in flag "-trigger" (optional string) ~doc: "_ Selects when magic-trace takes a trace. There are three trigger modes to choose \ from:\n\ (1) If you do not provide [-trigger], magic-trace takes a snapshot when you \ Ctrl+C it.\n\ (2) If you provide [-trigger ?], magic-trace will open up a fuzzy-find dialog to \ help you choose a symbol to trace. Fails if you don't have the \"fzf\" binary in \ your PATH.\n\ (3) If you provide [-trigger <FUNCTION NAME>], magic-trace will snapshot when the \ application being traced calls the given function. This takes the fully-mangled \ name, so if you're using anything except C, fuzzy-find mode will probably be \ easier to use. [-trigger .] is a shorthand for [-trigger \ magic_trace_stop_indicator].\n\ (*) Regardless of trigger mode, magic-trace will always snapshot when the \ application terminates if it has not yet triggered for any other reason." |> map ~f:(function | None -> Magic_trace_or_the_application_terminates | Some "?" -> Application_calls_a_function Use_fzf_to_select_one | Some "." -> Application_calls_a_function (User_selected Magic_trace.Private.stop_symbol) | Some symbol -> Application_calls_a_function (User_selected symbol)) ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>