• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • magic-trace

  • Documentation
  • magic-trace.magic_trace_lib lib
  • Magic_trace_lib .Tracing_tool_output Module
package magic-trace
  • magic-trace.magic_trace
    • Magic_trace
      • Min_duration
      • Private
  • magic-trace.magic_trace_core
    • Magic_trace_core
      • Backend_intf
        • S
          • Decode_opts
          • Record_opts
          • Recording
      • Decode_result
      • Elf
        • Addr_table
        • Location
        • Stop_info
        • Symbol_resolver
      • Elf_intf
        • Addr_table
        • Location
        • Stop_info
      • Errno
      • Event
        • Decode_error
        • Kind
        • Location
        • Ok
        • Thread
      • Perf_map
      • Perf_map_location
      • Subcommand
      • Symbol
      • Timer_resolution
      • Trace_mode
      • Trace_state_change
      • When_to_snapshot
  • magic-trace.magic_trace_lib
    • Magic_trace_lib
      • Boot_time
      • Breakpoint
        • Hit
      • Env_vars
      • Import
      • Perf_capabilities
        • Map
          • Key
          • Provide_bin_io
            • Key
          • Provide_hash
            • Key
          • Provide_of_sexp
            • Key
        • Replace_polymorphic_compare
        • Set
          • Elt
          • Named
          • Provide_bin_io
            • Elt
          • Provide_hash
            • Elt
          • Provide_of_sexp
            • Elt
        • Unstable
      • Perf_tool_backend
        • Decode_opts
        • Perf_line
        • Record_opts
        • Recording
      • Pow2_pages
      • Ptrace
      • Trace
        • For_testing
      • Trace_writer
      • Trace_writer_intf
        • S_trace
      • Tracing_tool_output
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val param : t Async.Command.Param.t

Offers configuration parameters for where to save a file and whether to serve it

val write_and_maybe_view : ?num_temp_strs:int -> t -> f:(Tracing_zero.Writer.t -> 'a Async.Deferred.Or_error.t) -> 'a Async.Deferred.Or_error.t

After f writes a trace, either hosts a Perfetto UI server for the resulting file or just saves it and prints a message about how to view the resulting trace.

It is the responsibility of f to close the writer and Perfetto may fail to load the trace if the writer isn't closed.

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct