pub fn thread_metrics() -> Metrics
Get the current allocation metrics for the current thread.
Allocations in other threads will not affect this value.