Skip to content

feature: add --dump-gc-stats option to dune build #8072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Alizter
Copy link
Collaborator

@Alizter Alizter commented Jun 28, 2023

This will dump a sexp into a file given by the --dump-gc-stats option which contains the data from Gc.stat after a collection.

We will use this in the bench in #8063.

The bench PR will add the decoder however I could not find a good way to include the decoder here. The issue is that dune_lang inside dune_util causes a cycle. Therefore the decoder will live in the bench.ml file where it will be used.

  • changelog
  • tests

@Alizter Alizter force-pushed the ps/branch/feature__add___dump_gc_stats_option_to_dune_build branch from ec5e396 to 125eb04 Compare June 28, 2023 13:26
@Alizter Alizter mentioned this pull request Jun 28, 2023
3 tasks
@Alizter Alizter force-pushed the ps/branch/feature__add___dump_gc_stats_option_to_dune_build branch 2 times, most recently from dc02423 to 90b6d83 Compare June 28, 2023 14:01
@Alizter Alizter requested a review from rgrinberg June 28, 2023 14:02
@Alizter Alizter force-pushed the ps/branch/feature__add___dump_gc_stats_option_to_dune_build branch 2 times, most recently from 478176c to bc060b6 Compare July 5, 2023 14:16
@Alizter Alizter force-pushed the ps/branch/feature__add___dump_gc_stats_option_to_dune_build branch from bc060b6 to ae24e33 Compare July 5, 2023 14:42
This will dump a sexp into a file given by the --dump-gc-stats option
which contains the data from Gc.stat after a collection.

We will use this in the bench.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter force-pushed the ps/branch/feature__add___dump_gc_stats_option_to_dune_build branch from ae24e33 to 7bc355e Compare July 5, 2023 16:10
@rgrinberg rgrinberg merged commit 156bd68 into ocaml:main Jul 5, 2023
@rgrinberg rgrinberg added this to the 3.10.0 milestone Jul 5, 2023
@Alizter Alizter deleted the ps/branch/feature__add___dump_gc_stats_option_to_dune_build branch July 5, 2023 16:18
emillon added a commit to emillon/opam-repository that referenced this pull request Jul 28, 2023
CHANGES:

- Add `dune show rules` as alias of the `dune rules` command. (ocaml/dune#8000, @Alizter)

- Fix `%{deps}` to expand properly in `(cat ...)` when containing 2 or more
  items. (ocaml/dune#8196, @Alizter)

- Add `dune show installed-libraries` as an alias of the `dune
  installed-libraries` command. (ocaml/dune#8135, @Alizter)

- Fix the `severity` of error messages sent over RPC which was missing. (ocaml/dune#8193,
  @Alizter)

- Add `dune build --dump-gc-stats FILE` argument to dump garbage collection
  stats to a named file. (ocaml/dune#8072, @Alizter)

- Fix bug with ppx and Reason syntax due to missing dependency in sandboxed
  action (ocaml/dune#7932, fixes ocaml/dune#7930, @Alizter)

- Add `dune describe package-entries` to print all package entries (ocaml/dune#7480,
  @moyodiallo)

- Improve `dune describe external-lib-deps` by adding the internal dependencies
  for more information. (ocaml/dune#7478, @moyodiallo)

- Re-enable background file digests on Windows. The files are now open in a way
  that prevents race condition around deletion. (ocaml/dune#8262, fixes ocaml/dune#8268, @emillon)
emillon added a commit to emillon/opam-repository that referenced this pull request Jul 31, 2023
CHANGES:

- Add `dune show rules` as alias of the `dune rules` command. (ocaml/dune#8000, @Alizter)

- Fix `%{deps}` to expand properly in `(cat ...)` when containing 2 or more
  items. (ocaml/dune#8196, @Alizter)

- Add `dune show installed-libraries` as an alias of the `dune
  installed-libraries` command. (ocaml/dune#8135, @Alizter)

- Fix the `severity` of error messages sent over RPC which was missing. (ocaml/dune#8193,
  @Alizter)

- Add `dune build --dump-gc-stats FILE` argument to dump garbage collection
  stats to a named file. (ocaml/dune#8072, @Alizter)

- Fix bug with ppx and Reason syntax due to missing dependency in sandboxed
  action (ocaml/dune#7932, fixes ocaml/dune#7930, @Alizter)

- Add `dune describe package-entries` to print all package entries (ocaml/dune#7480,
  @moyodiallo)

- Improve `dune describe external-lib-deps` by adding the internal dependencies
  for more information. (ocaml/dune#7478, @moyodiallo)

- Re-enable background file digests on Windows. The files are now open in a way
  that prevents race condition around deletion. (ocaml/dune#8262, fixes ocaml/dune#8268, @emillon)
nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
CHANGES:

- Add `dune show rules` as alias of the `dune rules` command. (ocaml/dune#8000, @Alizter)

- Fix `%{deps}` to expand properly in `(cat ...)` when containing 2 or more
  items. (ocaml/dune#8196, @Alizter)

- Add `dune show installed-libraries` as an alias of the `dune
  installed-libraries` command. (ocaml/dune#8135, @Alizter)

- Fix the `severity` of error messages sent over RPC which was missing. (ocaml/dune#8193,
  @Alizter)

- Add `dune build --dump-gc-stats FILE` argument to dump garbage collection
  stats to a named file. (ocaml/dune#8072, @Alizter)

- Fix bug with ppx and Reason syntax due to missing dependency in sandboxed
  action (ocaml/dune#7932, fixes ocaml/dune#7930, @Alizter)

- Add `dune describe package-entries` to print all package entries (ocaml/dune#7480,
  @moyodiallo)

- Improve `dune describe external-lib-deps` by adding the internal dependencies
  for more information. (ocaml/dune#7478, @moyodiallo)

- Re-enable background file digests on Windows. The files are now open in a way
  that prevents race condition around deletion. (ocaml/dune#8262, fixes ocaml/dune#8268, @emillon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants