Expand description
Support for reporting Rust memory usage to the Ruby GC.
Structs§
- Manually
Tracked - A guard which adjusts the memory usage reported to the Ruby GC by
delta. This allows you to track resources which are invisible to the Rust allocator, such as items that are known to internally usemmapor directmallocin their implementation. - Tracking
Allocator - A simple wrapper over
Systemwhich reports memory usage to the Ruby GC. This gives the GC a more accurate picture of the process’ memory usage so it can make better decisions about when to run.