Class: HeapInfo::Tcache
- Inherits:
-
Object
- Object
- HeapInfo::Tcache
- Defined in:
- lib/heapinfo/tcache.rb
Overview
Fetch tcache structure and show its content.
Constant Summary collapse
- MAX_BINS =
#define TCACHE_MAX_BINS 64
64
Instance Method Summary collapse
-
#initialize(base, size_t, dumper) ⇒ Tcache
constructor
Instantiate a Tcache object.
-
#layouts ⇒ String
Pretty dump of tcache entries.
Constructor Details
#initialize(base, size_t, dumper) ⇒ Tcache
Instantiate a HeapInfo::Tcache object.
15 16 17 18 19 |
# File 'lib/heapinfo/tcache.rb', line 15 def initialize(base, size_t, dumper) @base = base @size_t = size_t @dumper = dumper end |
Instance Method Details
#layouts ⇒ String
Pretty dump of tcache entries.
24 25 26 |
# File 'lib/heapinfo/tcache.rb', line 24 def layouts entries.map(&:inspect).join end |