package odoc-driver

  1. Overview
  2. Docs

Module Odoc_driver_lib.StatsSource

Returns the k commands that took the most time for a given subcommand.

Sourcetype stats = {
  1. mutable total_units : int Atomic.t;
  2. mutable total_impls : int Atomic.t;
  3. mutable total_mlds : int Atomic.t;
  4. mutable total_assets : int Atomic.t;
  5. mutable total_indexes : int Atomic.t;
  6. mutable non_hidden_units : int Atomic.t;
  7. mutable compiled_units : int Atomic.t;
  8. mutable compiled_impls : int Atomic.t;
  9. mutable compiled_mlds : int Atomic.t;
  10. mutable compiled_assets : int Atomic.t;
  11. mutable linked_units : int Atomic.t;
  12. mutable linked_impls : int Atomic.t;
  13. mutable linked_mlds : int Atomic.t;
  14. mutable generated_indexes : int Atomic.t;
  15. mutable generated_units : int Atomic.t;
  16. mutable processes : int Atomic.t;
  17. mutable process_activity : string Atomic.t Array.t;
  18. mutable finished : bool;
}
Sourceval stats : stats
Sourceval render_stats : < clock : [> float Eio.Time.clock_ty ] Eio.Time.clock.. > -> generate_json:bool -> int -> unit
Sourceval init_nprocs : int -> unit
Sourceval pp_stats : Format.formatter -> stats -> unit
Sourceval k_longest_commands : string -> int -> Run.t list
Sourceval dump : unit -> unit
Sourceval compute_min_max_avg : float list -> (float * float * float * int) option
Sourceval compute_metric_int : string -> string -> string -> float list -> [> `Assoc of (string * [> `Assoc of (string * [> `Int of int ]) list | `Int of int | `String of string ]) list ] list
Sourceval compute_metric_cmd : string -> [> `Assoc of (string * [> `Assoc of (string * [> `Float of float ]) list | `Int of int | `String of string ]) list ] list
Sourceval compute_produced_cmd : string -> [> `Assoc of (string * [> `Assoc of (string * [> `Int of int ]) list | `Int of int | `String of string ]) list ] list

Analyze the size of files produced by a command.

Sourceval compute_produced_tree : string -> Fpath.t -> [> `Assoc of (string * [> `Assoc of (string * [> `Int of int ]) list | `Int of int | `String of string ]) list ] list

Analyze the size of files outputed to the given directory.

Sourceval compute_longest_cmd : string -> [> `Assoc of (string * [> `Assoc of (string * [> `Float of float ]) list | `String of string ]) list ] list

Analyze the running time of the slowest commands.

Sourceval all_metrics : Fpath.t -> [> `Assoc of (string * [> `Assoc of (string * [> `Float of float | `Int of int ]) list | `Int of int | `String of string ]) list ] list
Sourceval bench_results : Fpath.t -> unit
Sourceval total_time : unit -> float