opam-version: "2.0"
maintainer: "ygrek@autistici.org"
authors: [ "Dmitry Grebeniuk <gdsfh1@gmail.com>" "ygrek@autistici.org" ]
homepage: "https://github.com/ygrek/objsize.git"
bug-reports: "https://github.com/ygrek/objsize/issues"
dev-repo: "git+https://github.com/ygrek/objsize.git"
build: [
  [make]
  [make "test"] {with-test}
  [make "doc"] {with-doc}
]
install: [[make "install"]]
remove: [["ocamlfind" "remove" "objsize"]]
depends: [
  "ocaml" {>= "3.11" & < "4.03"}
  "ocamlfind"
  "camlp4"
  "ocamlbuild" {build}
]
synopsis: "Small library to compute sizes of OCaml heap values"
description: """
This library computes number of words occupied by heap value, size
of values' headers and maximal depth of values, by recursively scanning
heap blocks constituting the value in question.
It is also possible to calculate the total amount of
heap memory used by live values reachable from GC roots."""
flags: light-uninstall
url {
  src: "https://ygrek.org/p/release/objsize/objsize-0.17.tar.bz2"
  mirrors: "https://github.com/ygrek/objsize/releases/download/0.17/objsize-0.17.tar.bz2"
  checksum: "md5=fa3e3f30fa9da04c7634738ec9726720"
}
