Emit major slice counters in the runtime events#13364
Conversation
gasche
left a comment
There was a problem hiding this comment.
This is fine overall. I think it would be nice to try to document a bit the new runtime_counters constructors, possibly just to say that they correspond to internal implementation details of the GC related to pacing computation.
| Live blocks of a Domain's major heap large allocations. | ||
| @since 5.1 *) | ||
| | EV_C_MAJOR_HEAP_WORDS | ||
| | EV_C_MAJOR_ALLOCATED_WORDS |
There was a problem hiding this comment.
The constructors above all have careful documentation. Shouldn't we try to document those as well, or at least make it explicit why they are not documented?
There was a problem hiding this comment.
Good point. Let me try to document these.
There was a problem hiding this comment.
That would generate useful documentation on the Runtime_events module.
Unfortunately some of the other constructors are undocumented.
|
I've added some docs for the constructors in kayceesrk#16 One problem with this PR (ocaml/ocaml) though is that We probably don't want to emit events when that happens. (do we even want to be updating our work in that case?) |
Good point. I see that I'd prefer to keep logic changes in a separate PR. For now, I've updated |
28179ba to
c31de35
Compare
|
Thanks @gasche. |
This PR emits the counters updated as part of the major slice computation. The related discussion is here: #13321.
ollyhas already been updated to emit these counters in the trace: tarides/runtime_events_tools#46.I had originally planned to make this PR after #13320 was merged. However, it looks like it may take longer: #13320 (comment). The change itself can be easily modified to accommodate future changes in the slice computation.