| 563 | } |
| 564 | |
| 565 | void omPrintUsedAddrs(FILE* fd, int max) |
| 566 | { |
| 567 | om_total_used_size = 0; |
| 568 | om_total_used_blocks = 0; |
| 569 | om_print_used_addr_fd = (fd == NULL ? stdout : fd); |
| 570 | om_print_frames = max; |
| 571 | omIterateTroughAddrs(1, 1, _omPrintUsedAddr, NULL); |
| 572 | fprintf(fd, "UsedAddrs Summary: UsedBlocks:%ld TotalSize:%ld\n", |
| 573 | om_total_used_blocks, (long)om_total_used_size); |
| 574 | } |
| 575 | |
| 576 | void omPrintUsedTrackAddrs(FILE* fd, int max) |
| 577 | { |