[Tarantool-patches] [PATCH v2 luajit] tools: introduce --leak-only memprof parser option
Igor Munkin
imun at tarantool.org
Wed Apr 14 17:34:53 MSK 2021
Sergey,
I've checked the series into tarantool branch in tarantool/luajit and
bumped a new version in master.
On 31.03.21, Sergey Kaplun wrote:
> This patch indtroduces new memprof parser module <process.lua> to
> post-process memory events.
>
> Memprof parser now adds postamble with the source lines of Lua chunks
> (or "INTERNAL") that allocate and do not free some amount of bytes, when
> profiler finishes. The parser also reports the number of allocation and
> deallocation events related to each line.
>
> Also, this patch adds a new --leak-only memory profiler parser option.
> When the parser runs with that option, it reports only leak
> information.
>
> Resolves tarantool/tarantool#5812
> ---
> Changes in v2:
> * introduce new memprof's <process.lua> module to post-process parsed
> events
> * add tests
>
> ChangeLog entry (and postamble too Tarantool bump commit message):
>
> ===================================================================
> ##feature/luajit
>
> * Now memory profiler parser reports heap difference occurring during
> the measurement interval. New memory profiler's option `--leak-only`
> to show only heap difference is introduced. New built-in module
> `memprof.process` is introduced to perform memory events
> post-processing and aggregation. Now to launch memory profiler
> via Tarantool user should use the following command:
> `tarantool -e 'require("memprof")(arg)' - --leak-only /tmp/memprof.bin`
> ===================================================================
>
> Branch with tests and added the corresponding built-in:
> * https://github.com/tarantool/tarantool/tree/skaplun/gh-5812-memprof-memleaks-option
> LuaJIT branch:
> * https://github.com/tarantool/luajit/tree/skaplun/gh-5812-memprof-memleaks-option
> Issue: https://github.com/tarantool/tarantool/issues/5812
>
> .../misclib-memprof-lapi.test.lua | 21 +++++--
> tools/memprof.lua | 33 ++++++-----
> tools/memprof/humanize.lua | 43 +++++++++++++-
> tools/memprof/parse.lua | 20 +++++--
> tools/memprof/process.lua | 59 +++++++++++++++++++
> 5 files changed, 151 insertions(+), 25 deletions(-)
> create mode 100644 tools/memprof/process.lua
>
<snipped>
> --
> 2.31.0
>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list