package proc-smaps

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module SmapsSource

Sourcetype value = Stdint.uint64
Sourcemodule Fields : sig ... end
Sourcetype t
Sourceval get_address : t -> value * value
Sourceval get_perms : t -> int

Return an integer in the range 0..31, where each bits represents rwxsp

Sourceval get_offset : t -> value
Sourceval get_inode : t -> int
Sourceval get_pathname : t -> string
Sourceval get_size_exn : t -> Fields.key -> value

Get the size associated with the given key

Sourceval get_size : t -> Fields.key -> value option
Sourceval pp_perms : Format.formatter -> int -> unit
Sourceval pp_mapping : Format.formatter -> t -> unit
Sourceval pp_mappings : Format.formatter -> t list -> unit
Sourceval get_smaps : int -> (t list, string) result Lwt.t

Read and parse /proc/<pid>/smaps

Sourceval get_self_smaps : unit -> (t list, string) result Lwt.t

Read and parse /proc/self/smaps

Sourceval sum_rss : t list -> value

Summalize RSS of all ts

Sourceval sum_shared_rss : t list -> value

Summalize RSS of shared ts

OCaml

Innovation. Community. Security.