feat(vm): add resource diagnostics and macOS stability qualification
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
This commit is contained in:
@@ -427,6 +427,11 @@ impl Heap {
|
||||
pub fn allocation_count(&self) -> u64 {
|
||||
self.allocation_count.load(Ordering::Relaxed)
|
||||
}
|
||||
|
||||
#[cfg(feature = "resource-diagnostics")]
|
||||
pub(crate) fn diagnostic_handles(&self) -> (usize, usize) {
|
||||
(self.free_list.len(), self.objects.len() - self.free_list.len() - self.len())
|
||||
}
|
||||
}
|
||||
|
||||
// Internal consumer seam for PLN-0176 step 18 / AGD-0054. Executable image
|
||||
|
||||
Reference in New Issue
Block a user