Skip to content
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

[instruments] Gracefully handle some erts allocators being disabled #30

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

ypisetsky
Copy link
Contributor

When running with some allocators disabled, :erlang.memory will raise an ErlangError (:notsup). See notes in https://www.erlang.org/doc/man/erlang.html#memory-0 . This allows continuing to use Instruments.register_vm_metrics for the remaining metrics it registers even on such systems.

@ypisetsky ypisetsky requested a review from mezz May 30, 2023 16:59
@ypisetsky ypisetsky merged commit 670b0c0 into master Jun 1, 2023
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