lua: track memory occupied by runtime tuples
See the documentation request below for details. Fixes #5872 @TarantoolBot document Title: New `box.runtime.info().tuple` metric It allows to track memory allocated for tuples on runtime arena. It does not count tuples owned by memtx and vinyl, but tracks so called runtime tuples. The most common example is a tuple created by the `box.tuple.new(<...>)` function. Example: ```lua tarantool> box.runtime.info().tuple -- 0 tarantool> box.tuple.new({}) tarantool> box.runtime.info().tuple -- 160 tarantool> box.tuple.new({}) tarantool> box.runtime.info().tuple -- 320 tarantool> collectgarbage() tarantool> box.runtime.info().tuple -- 160 ```
Showing
- changelogs/unreleased/box-runtime-info-tuple.md 7 additions, 0 deletionschangelogs/unreleased/box-runtime-info-tuple.md
- src/box/lua/slab.cc 4 additions, 0 deletionssrc/box/lua/slab.cc
- src/box/tuple.c 16 additions, 0 deletionssrc/box/tuple.c
- src/box/tuple.h 12 additions, 0 deletionssrc/box/tuple.h
- test/box-luatest/box_runtime_info_tuple_test.lua 38 additions, 0 deletionstest/box-luatest/box_runtime_info_tuple_test.lua
Loading
Please register or sign in to comment