Class: HeapInfo::Smallbin
- Inherits:
-
UnsortedBin
- Object
- Chunk
- Fastbin
- UnsortedBin
- HeapInfo::Smallbin
- Defined in:
- lib/heapinfo/arena.rb
Overview
Class for record smallbin type chunk.
Instance Attribute Summary
Attributes inherited from UnsortedBin
Attributes inherited from Fastbin
Attributes inherited from Chunk
#base, #data, #prev_size, #size_t
Instance Method Summary collapse
-
#idx_to_size ⇒ Integer
Mapping index of smallbin to chunk size.
Methods inherited from UnsortedBin
#initialize, #inspect, #link_list, #pretty_list
Methods inherited from Fastbin
#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_size ⇒ Integer
Mapping index of smallbin to chunk size.
229 230 231 |
# File 'lib/heapinfo/arena.rb', line 229 def idx_to_size index * size_t * 2 + size_t * 4 end |