[Tarantool-patches] [PATCH luajit] tools: make memprof parser output user-friendly
Igor Munkin
imun at tarantool.org
Tue Mar 30 00:58:46 MSK 2021
Sergey,
I've checked the series into tarantool branch in tarantool/luajit and
bumped a new version in master.
On 26.03.21, Sergey Kaplun wrote:
> Profiler parser output looks like the following:
> | ALLOCATIONS
> | @true_memleak.lua:6, line 9: 3 144 0
> | @true_memleak.lua:6, line 8: 2 41 0
>
> Line of function definition is confusing for users and looks redundant.
> Also, these "magic numbers" may shock users.
>
> This patch removes lines of function definitions from the output.
> Info about the line function definition is saved inside symbol info
> table by field `defined` (it can be used later for a user's custom
> parser). Moreover, explanatory words and signs are added to numbers
> for more verbose output.
>
> After the patch, profiler parser output looks like the following:
> | ALLOCATIONS
> | @true_memleak.lua:9: 3 events +144 bytes -0 bytes
> | @true_memleak.lua:8: 2 events +41 bytes -0 bytes
>
> Resolves tarantool/tarantool#5811
> Part of tarantool/tarantool#5657
> ---
> Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-5811-user-friendly-memprof
> Tarantool branch: https://github.com/tarantool/tarantool/tree/skaplun/gh-5811-user-friendly-memprof
> Issues:
> * https://github.com/tarantool/tarantool/issues/5811
> * https://github.com/tarantool/tarantool/issues/5657
>
> test/tarantool-tests/misclib-memprof-lapi.test.lua | 4 +++-
> tools/memprof/humanize.lua | 2 +-
> tools/utils/symtab.lua | 5 +++--
> 3 files changed, 7 insertions(+), 4 deletions(-)
>
<snipped>
> --
> 2.31.0
>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list