package albatross

  1. Overview
  2. Docs

Module Albatross_stats_pureSource

Sourceval (let*) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
Sourceval sysconf_clock_tick : unit -> int
Sourceval sysctl_kinfo_proc : int -> Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem
Sourceval get_ifindex_by_name : string -> int
Sourceval sysctl_ifdata : int -> Vmm_core.Stats.ifdata
Sourcetype 'a t = {
  1. pid_nic : (string * int * string) list Vmm_core.IM.t;
  2. vmid_pid : int Vmm_trie.t;
  3. name_sockets : 'a Vmm_trie.t;
}
Sourceval pp_strings : Format.formatter -> string list -> unit
Sourceval pp_nics : Format.formatter -> (string * string) list -> unit
Sourceval empty : unit -> 'a t
Sourceval remove_entry : 'a t -> Vmm_core.Name.t -> 'a t
Sourceval wrap : ('a -> 'b) -> 'a -> 'b option
Sourceval vmmapi : [ `Close | `Open ] -> unit
Sourceval remove_vmid : 'a t -> Vmm_core.Name.t -> 'a t
Sourceval reported_vmmapi : bool ref
Sourceval string_of_file : string -> (string, [> `Msg of string ]) result
Sourceval parse_proc_stat : string -> (string list, [> `Msg of string ]) result
Sourceval read_proc_status : int -> ((string * string) list, [> `Msg of string ]) result
Sourceval linux_rusage : int -> (Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem, [> `Msg of string ]) result
Sourceval reported_rusage_hint : bool ref
Sourceval gather : int -> (string * int * string) list -> Vmm_core.Stats.rusage option * Vmm_core.Stats.kinfo_mem option * Vmm_core.Stats.ifdata list
Sourceval tick : (Vmm_commands.version * 'a * ([< `Current | `Old ] as 'b)) t -> (Vmm_commands.version * 'a * 'b) t * (Vmm_core.Name.t * (Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem option * Vmm_core.Stats.ifdata list)) list * ('a * Vmm_core.Name.t * (Vmm_commands.header * [> `Data of [> `Old_stats_data of Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem option * 'c option * Vmm_core.Stats.ifdata list | `Stats_data of Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem option * Vmm_core.Stats.ifdata list ] ])) list
Sourceval add_pid : 'a t -> Vmm_core.Name.t -> Vmm_core.IM.key -> (string * string) list -> ('a t, 'b) result
Sourceval handle : (Vmm_commands.version * 'a * ([> `Current | `Old ] as 'b)) t -> 'a -> (Vmm_commands.header * Vmm_commands.res) -> ((Vmm_commands.version * 'a * 'b) t * (Vmm_commands.version * 'a * 'b) option * string, [> `Msg of string ]) result