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

Add compile-time option for logging Alloy stats #147

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

jacob-hughes
Copy link
Collaborator

This can be used by our experiment runner to obtain relevant stats about the totals:

  • Finalizers registered
  • Finalizers run
  • GC objects allocated
  • Boxed objects allocated
  • Rc objects allocated
  • Arc objects allocated
  • GC cycles

This data is logged to a file when provided with the LOG_ALLOY_STATS=/path/to/file.log environment variable.

Since this is a compile-time flag used when building Alloy, it has no effect on the performance of Alloy programs when disabled.

This can be used by our experiment runner to obtain relevant stats about
the totals:

* Finalizers registered
* Finalizers run
* GC objects allocated
* Boxed objects allocated
* Rc objects allocated
* Arc objects allocated
* GC cycles

This data is logged to a file when provided with the
`LOG_ALLOY_STATS=/path/to/file.log` environment variable.

Since this is a compile-time flag used when building Alloy, it has no
effect on the performance of Alloy programs when disabled.
@ltratt ltratt added this pull request to the merge queue Nov 21, 2024
Merged via the queue into softdevteam:master with commit 717a842 Nov 22, 2024
2 checks passed
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