| 928 | } |
| 929 | |
| 930 | size_t getAllocatedBytes(AllocationType atype, bool huge_pages = false) const { |
| 931 | size_t bytes = 0; |
| 932 | for (const Block* block = this; block; block = block->next) { |
| 933 | if (!block->hasType(atype,huge_pages)) continue; |
| 934 | bytes += block->getBlockAllocatedBytes(); |
| 935 | } |
| 936 | return bytes; |
| 937 | } |
| 938 | |
| 939 | void print_list () |
| 940 | { |
no test coverage detected