Skip to content

Conversation

@tmcgilchrist
Copy link
Collaborator

This PR uses the runtime_counters to produce extra details about GC activity.

$ olly gc-stats <executable>
...
GC allocations (in words): 
Total heap:	 3531570382
Minor heap:	 3531570349
Major heap:	 10230309
Promoted words:	 10230276 (0.29%)

Per domain stats: 
Domain   Total        Minor        Promoted   Major      Promoted(%)  
0        3531570382   3531570349   10230276   10230309   0.29         
Minor Gen: 13478 collections
Major Gen: 12 collections 0 forced collections
Compactions: 0

Reports global allocations and promotion rates as well as
per-domain. Total GC collections, forced collections and
compactions.
OCaml 5.0 - 5.2* will get overall allocation stats but not per-domain
stats as the runtime counters are missing. OCaml 5.3 onwards gets
per-domain statistics.
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.

1 participant