box: introduce tuple:info()
See the doc bot request for the description. Part of #6762 NO_CHANGELOG=next commit @TarantoolBot document Title: Document `tuple:info()` Product: Tarantool Since: 3.0 Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_tuple/ tuple_object:info() - Get information about the tuple Returns a table with the following fields: * data_size - Size of the 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 - The amount of excess memory used to store the tuple in mempool. * arena - Type of the arena where the tuple is allocated. Possible values are: "memtx", "malloc", "runtime".
Showing
- src/box/allocator.h 5 additions, 0 deletionssrc/box/allocator.h
- src/box/lua/tuple.c 36 additions, 0 deletionssrc/box/lua/tuple.c
- src/box/lua/tuple.lua 1 addition, 0 deletionssrc/box/lua/tuple.lua
- src/box/memtx_engine.cc 47 additions, 1 deletionsrc/box/memtx_engine.cc
- src/box/tuple.c 30 additions, 0 deletionssrc/box/tuple.c
- src/box/tuple.h 38 additions, 0 deletionssrc/box/tuple.h
- src/box/tuple_format.h 8 additions, 0 deletionssrc/box/tuple_format.h
- src/box/vy_stmt.c 15 additions, 0 deletionssrc/box/vy_stmt.c
- src/lib/small 1 addition, 1 deletionsrc/lib/small
- test/box-luatest/gh_6762_tuple_and_space_size_test.lua 131 additions, 0 deletionstest/box-luatest/gh_6762_tuple_and_space_size_test.lua
- test/unit/memtx_allocator.cc 11 additions, 0 deletionstest/unit/memtx_allocator.cc
Loading
Please register or sign in to comment