Lines Matching refs:bytes
622 // bytes of allocation, i.e., ~ once every 128KB.
835 // bytes, so the space wasted as a percentage starts falling for
942 // Metadata allocator -- keeps stats about how many bytes allocated
944 static void* MetaDataAlloc(size_t bytes) {
945 void* result = TCMalloc_SystemAlloc(bytes, 0);
947 metadata_system_bytes += bytes;
1045 // an unreasonably large value if bytes is huge enough.
1046 static inline Length pages(size_t bytes) {
1047 return (bytes >> kPageShift) +
1048 ((bytes & (kPageSize - 1)) > 0 ? 1 : 0);
1051 // Convert a user size into the number of bytes that will actually be
1053 static size_t AllocationSize(size_t bytes) {
1054 if (bytes > kMaxSize) {
1056 ASSERT(bytes <= (kMaxValidPages << kPageShift));
1057 return pages(bytes) << kPageShift;
1060 return ByteSizeForClass(SizeClass(bytes));
1308 // Return number of bytes allocated from system
1311 // Return number of free bytes in heap
1356 // Bytes allocated from system
2137 size_t bytes_until_sample_; // Bytes until we sample next
2166 // Record allocation of "k" bytes. Return true iff allocation
2315 // Pad each CentralCache object to multiple of 64 bytes
3113 uint64_t system_bytes; // Bytes alloced from system
3114 uint64_t thread_bytes; // Bytes in thread caches
3115 uint64_t central_bytes; // Bytes in central cache
3116 uint64_t transfer_bytes; // Bytes in central transfer cache
3117 uint64_t pageheap_bytes; // Bytes in page heap
3118 uint64_t metadata_bytes; // Bytes alloced for metadata
3172 out->printf("class %3d [ %8" PRIuS " bytes ] : "
3193 "MALLOC: %12" PRIu64 " Bytes in use by application\n"
3194 "MALLOC: %12" PRIu64 " Bytes free in page heap\n"
3195 "MALLOC: %12" PRIu64 " Bytes free in central cache\n"
3196 "MALLOC: %12" PRIu64 " Bytes free in transfer cache\n"
3197 "MALLOC: %12" PRIu64 " Bytes free in thread caches\n"
3307 // We assume that bytes in the page heap are not fragmented too
4017 // Allocate page-aligned object of length >= size bytes