File: mem_usage.mli

package info (click to toggle)
ocaml-mem-usage 0.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 168 kB
  • sloc: ansic: 253; ml: 96; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(*
 * SPDX-FileCopyrightText: 2022 - 2024 Savonet team
 *
 * SPDX-License-Identifier: MIT
 *)

type t = {
  total_virtual_memory : int;
  total_physical_memory : int;
  total_used_virtual_memory : int;
  total_used_physical_memory : int;
  process_virtual_memory : int;
  process_physical_memory : int;
  process_private_memory : int;
  process_swapped_memory : int;
}

val info : unit -> t

val prettify_bytes :
  ?float_printer:(float -> string) ->
  ?signed:bool ->
  ?bits:bool ->
  ?binary:bool ->
  int ->
  string