-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Some thoughts:
- MaPLe has a rudimentary tracing infrastructure, but it’s not well documented and a bit fragile.
- It’s discussed briefly here and here
- Here’s a somewhat recent example of extending it with additional events.
- It would be really useful to track other events.
Additional events that would be useful:
- (Done: Export a counter event for block allocations. #235) Block allocations and deallocations, perhaps also keeping track of block usage as a tracing counter.
- In MaPLe, one "block" is essentially one OS page, and the block allocator is responsible for allocating and freeing blocks.
- Every block allocation goes through allocateBlocks, and every deallocation through freeBlocks
- Adding support for tracing might be pretty straightforward.
- TODO more!
(11/27/25, Sam) Taking notes here of other ideas for additional functionality:
- Only tracing a subset of events during a run
- Allowing for application-level user-customizable events