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 Field : sig ... end
Sourcetype t = {
  1. address : value * value;
  2. perms : int;
  3. offset : value;
  4. inode : int;
  5. pathname : string;
  6. size_fields : value Field.t;
}
Sourceval size : string
Sourceval kernel_page_size : string
Sourceval mmu_page_size : string
Sourceval rss : string
Sourceval pss : string
Sourceval shared_clean : string
Sourceval shared_dirty : string
Sourceval private_clean : string
Sourceval private_dirty : string
Sourceval referenced : string
Sourceval anonymous : string
Sourceval lazy_free : string
Sourceval anon_huge_pages : string
Sourceval shmem_pmd_mapped : string
Sourceval file_pmd_mapped : string
Sourceval shared_hugetlb : string
Sourceval private_hugetlb : string
Sourceval swap : string
Sourceval swap_pss : string
Sourceval locked : string
Sourceval get_address : t -> value * value
Sourceval get_perms : t -> int

Return an integer in the range 0, 32), 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 -> string -> value
Sourceval get_size : t -> string -> 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/self/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.