tuple_object.info()

object tuple_object¶
tuple_object:info()¶

Get information about the tuple memory usage.

Returns a table with the following fields:

  • data_size – size of MessagePack data in the tuple. This number equals to number returned by tuple_object.bsize().
  • header_size - size of the internal tuple header.
  • field_map_size – size of the field map. Field map is used to speed up access to indexed fields of the tuple.
  • waste_size – amount of excess memory wasted due to internal fragmentation in the slab allocator.
  • arena - type of the arena where the tuple is allocated. Possible values are: memtx, malloc, runtime.
Return:tuple memory usage statistics
Rtype:table

Example

tarantool> box.space.tester:get('222200000'):info() --- - data_size: 55  waste_size: 95  arena: memtx  field_map_size: 4  header_size: 6 ... 
Found what you were looking for?
Feedback