MCPcopy Create free account
hub / github.com/RenderKit/embree / getAllocatedBytes

Method getAllocatedBytes

kernels/common/alloc.h:930–937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

StatisticsMethod · 0.80

Calls 2

hasTypeMethod · 0.80

Tested by

no test coverage detected