A small library for manipulating OCaml Inlining Reports (hence ocir)
  • OCaml 98.9%
  • Dune 1.1%
Find a file
2021-01-25 17:28:19 +01:00
src Finished comparison/diff of reports 2021-01-25 17:28:19 +01:00
.gitignore Add gitignore 2020-12-11 15:21:35 +01:00
dune-project Update dependencies 2021-01-25 14:36:20 +01:00
HACKING.md Typos 2020-12-16 15:14:37 +01:00
ocir.opam Update dependencies 2021-01-25 14:36:20 +01:00
README.md Add README.md and HACKING.md 2020-12-16 15:13:38 +01:00

OCaml Inlining Reports

This project defines some utilities to handle and manipulate the inlining reports generated by the ocamlopt native compiler.

WARNING: this is still highly experimental

Build and Installation

With opam

Since dune generates opam files, this repo can be pinned using opam:

opam pin add ocir https://github.com/Gbury/ocir

Manually with dune

Since the project builds with dune, it should be easy to build and install:

dune build @install # to build the installable parts
dune install        # to install the lib and binary

Or you can also vendor the project.

Usage

Currently the ocir library is composed of two small parts:

  • ocir_core defines a central notion of inlining report, and some printing functions (more to come later).
  • ocir_format defines converters to read serialized inlining reports and convert them to the inlining report type defined in ocir_core.

Additionally, an ocir binary exists. This binary is currently very limited and simply reads a serialized inlining report and prints it in human readable format on stdout.

Hacking

See HACKING.md

LICENSE

TODO ?