pub fn count() -> usize
Expand description
Returns the number of garbage collections that have been run since the start of the process.
§Panics
Panics if called from a non-Ruby thread. See Ruby::gc_count
for the
non-panicking version.
§Examples
use magnus::gc;
let before = gc::count();
gc::start();
assert!(gc::count() > before);