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 vmctx
Sourcetype vcpu
Sourceval vmmapi_open : string -> vmctx * vcpu
Sourceval vmmapi_close : vmctx -> vcpu -> unit
Sourceval vmmapi_stats : vmctx -> vcpu -> (string * int64) list
Sourcetype 'a t = {
  1. pid_nic : ((vmctx * vcpu, int) result * string * (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 open_vmmapi : retries:int -> string -> (vmctx * vcpu, int) result
Sourceval try_open_vmmapi : ((vmctx * vcpu, int) result * string * 'a) Vmm_core.IM.t -> ((vmctx * vcpu, int) result * string * 'a) Vmm_core.IM.t
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 gather : int -> (vmctx * vcpu, 'a) result -> (string * int * string) list -> Vmm_core.Stats.rusage option * Vmm_core.Stats.kinfo_mem option * (string * int64) list option * Vmm_core.Stats.ifdata list
Sourceval tick : bool -> (Vmm_commands.version * 'a) t -> (Vmm_commands.version * 'a) t * ('a * Vmm_core.Name.t * (Vmm_commands.header * [> `Data of [> `Stats_data of Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem option * (string * int64) list option * Vmm_core.Stats.ifdata list ] ])) list
Sourceval add_pid : 'a t -> Vmm_core.Name.t -> string -> Vmm_core.IM.key -> (string * string) list -> ('a t, 'b) result
Sourceval handle : (Vmm_commands.version * 'a) t -> 'a -> (Vmm_commands.header * Vmm_commands.res) -> ((Vmm_commands.version * 'a) t * (Vmm_commands.version * 'a) option * string, [> `Msg of string ]) result
OCaml

Innovation. Community. Security.