fiber: introduce fiber_o:info() and fiber_o:csw()
If you want to get information or get csw (Context SWitch) of some fiber you need to call fiber.info(), but it creates table with information about all the fibers. This patch introduces fiber_object:info() and fiber_object:csw() - functions to solve this problem. Closes #5799 @TarantoolBot document Title: introduce fiber_object:info() and fiber_object:csw() ``` -- fiber_object:info() is the same as fiber.info(), but show information only about one alive fiber. -- fiber_object:csw() show csw (Context SWitch) of alive fiber. ```
Showing
- changelogs/unreleased/gh-5799-add-info-to-fiber-object.md 4 additions, 0 deletionschangelogs/unreleased/gh-5799-add-info-to-fiber-object.md
- src/lua/fiber.c 78 additions, 21 deletionssrc/lua/fiber.c
- test/app/gh-5799-fiber-info.result 80 additions, 0 deletionstest/app/gh-5799-fiber-info.result
- test/app/gh-5799-fiber-info.test.lua 37 additions, 0 deletionstest/app/gh-5799-fiber-info.test.lua
test/app/gh-5799-fiber-info.result
0 → 100644
test/app/gh-5799-fiber-info.test.lua
0 → 100644