(&self)
| 556 | } |
| 557 | |
| 558 | fn collect_stack_rows(&self) -> (u64, Vec<(StackKey, StackStats)>) { |
| 559 | let mut total_live_bytes = 0_u64; |
| 560 | let mut rows = Vec::with_capacity(self.stacks.len()); |
| 561 | for entry in &self.stacks { |
| 562 | let stats = *entry.value(); |
| 563 | if stats.live_bytes == 0 && stats.alloc_bytes_total == 0 { |
| 564 | continue; |
| 565 | } |
| 566 | total_live_bytes = total_live_bytes.saturating_add(stats.live_bytes); |
| 567 | rows.push((*entry.key(), stats)); |
| 568 | } |
| 569 | (total_live_bytes, rows) |
| 570 | } |
| 571 | |
| 572 | fn total_bytes(&self) -> (u64, u64) { |
| 573 | let mut live = 0_u64; |
no test coverage detected