Class: HeapInfo::TcacheEntry

Inherits:
Fastbin show all
Defined in:
lib/heapinfo/tcache.rb

Overview

A tcache entry.

Though this class inherited from Chunk (Fastbin), tcache entries are not chunks.

Instance Attribute Summary

Attributes inherited from Fastbin

#fd, #index

Attributes inherited from Chunk

#base, #data, #prev_size, #size_t

Instance Method Summary collapse

Methods inherited from Fastbin

#idx_to_size, #initialize, #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::Fastbin

Instance Method Details

#inspectString

For pretty inspect.

Returns:

  • (String)

    Empty string is returned if this entry contains nothing.



43
44
45
46
# File 'lib/heapinfo/tcache.rb', line 43

def inspect
  return '' if fd_of(@base).zero? # empty
  super
end