pub fn stat<T>(key: T) -> Result<usize, Error>where
T: IntoSymbol,
Expand description
Returns the GC profiling value for key
.
§Panics
Panics if called from a non-Ruby thread. See Ruby::gc_stat
for the
non-panicking version.
§Examples
use magnus::gc;
assert!(gc::stat("heap_live_slots").unwrap() > 1);