-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: global
--show-heap-stats
argument for EOL heap stats
Summary: One of the more useful features of mimalloc. In the future this interface could be expanded to support printing to a callback, so that it could be triggered and dumped e.g. on debugging endpoints for longer running processes, when we get there. However, it's not enough to just add it to the `main` module; not only would it be ugly and overspecific, it should be reusable so other custom `jj` commands can opt-in to statistics trivially as well. Users should be strongly encouraged to do this -- enable mimalloc and stat tracking -- since that's what upstream will now work and test with; but, of course, all things are optional. Thus, we expose an API from the `cli_utils` module for use with `cli_util::CliRunner::add_global_args`, but ultimately it's up to the client to call it. Signed-off-by: Austin Seipp <[email protected]> Change-Id: I6abe4b962bbe7c62ebca97be630b750c
- Loading branch information
1 parent
2e671c3
commit 573d335
Showing
4 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters