Skip to content
In progress

Changes

Progress:

Summary

  1. Memprof.start replaces any existing profile in the domain, Memprof.is_sampling (commit: bab7aa8) (details)
  2. Adjust test and add test (commit: 532fb2a) (details)
  3. [minor] Code clean-up (commit: 18e0162) (details)
  4. [documentation] Clarify a difference between threads and domains (commit: c0e29d9) (details)
  5. Changes (commit: c12e33c) (details)
  6. Clarify test (commit: 632b901) (details)
  7. Run callbacks before starting a different profile (commit: 201ea83) (details)
Commit bab7aa8a5838830b5bb41a3c4b12dcd058665344 by gabriel.scherer
Memprof.start replaces any existing profile in the domain, Memprof.is_sampling

The change to Memprof.start increases its compositionality while
conforming to the previous behaviour (it simply fails in fewer
situations). This is necessary for us to implement the Memprof
interface on top of the package memprof-limits.

The new function is_sampling is for clients that do want to fail
early, e.g. when detecting that two Memprof clients are interfering.
(commit: bab7aa8)
The file was modifiedruntime/memprof.c (diff)
The file was modifiedstdlib/gc.ml (diff)
The file was modifiedstdlib/gc.mli (diff)
The file was modifiedtestsuite/tests/statmemprof/start_stop.reference (diff)
The file was modifiedtestsuite/tests/statmemprof/start_stop.ml (diff)
The file was addedtestsuite/tests/statmemprof/restart.ml
The file was addedtestsuite/tests/statmemprof/restart.reference
The file was modifiedruntime/memprof.c (diff)
Commit c0e29d9293147a35f9ad6ab827ec67008a8a6317 by gabriel.scherer
[documentation] Clarify a difference between threads and domains
(commit: c0e29d9)
The file was modifiedstdlib/gc.mli (diff)
The file was modifiedChanges (diff)
The file was modifiedtestsuite/tests/statmemprof/start_stop.ml (diff)
The file was modifiedtestsuite/tests/statmemprof/start_stop.reference (diff)
Commit 201ea83e90ade2b6fa31aa3453fd73033a060a6e by gabriel.scherer
Run callbacks before starting a different profile

Simplify code by using caml_memprof_run_callbacks_res
(commit: 201ea83)
The file was modifiedruntime/memprof.c (diff)