Class: HeapInfo::Smallbin

Inherits:
UnsortedBin show all
Defined in:
lib/heapinfo/arena.rb

Overview

Class for record smallbin type chunk.

Instance Attribute Summary

Attributes inherited from UnsortedBin

#bk

Attributes inherited from Fastbin

#fd, #index

Attributes inherited from Chunk

#base, #data, #prev_size, #size_t

Instance Method Summary collapse

Methods inherited from UnsortedBin

#initialize, #inspect, #link_list, #pretty_list

Methods inherited from Fastbin

#bk_of, #fd_of, #initialize, #inspect, #list, #title

Methods inherited from Chunk

#bintype, #flags, #initialize, #mmapped?, #non_main_arena?, #prev_inuse?, #size, #to_s

Constructor Details

This class inherits a constructor from HeapInfo::UnsortedBin

Instance Method Details

#idx_to_sizeInteger

Mapping index of smallbin to chunk size.


231
232
233
# File 'lib/heapinfo/arena.rb', line 231

def idx_to_size
  index * size_t * 2 + size_t * 4
end