[Tarantool-patches] [PATCH luajit v2 7/7] tools: introduce a memory profile parser

Igor Munkin imun at tarantool.org
Mon Dec 28 08:33:06 MSK 2020


Sergey,

Neato, LGTM.

On 28.12.20, Sergey Kaplun wrote:
> Adjusted <memprof.lua> to more painless integration with Tarantool.
> See the iterative patch below. Branch is force-pushed.
> 
> ===================================================================
> diff --git a/tools/memprof.lua b/tools/memprof.lua
> index 92d192e..a98e192 100644
> --- a/tools/memprof.lua
> +++ b/tools/memprof.lua
> @@ -90,7 +90,7 @@ local function parseargs(args)
>    return args[args.argn]
>  end
>  
> -local inputfile = parseargs{...}
> +local inputfile = parseargs(arg)
>  
>  local reader = bufread.new(inputfile)
>  local symbols = symtab.parse(reader)
> @@ -107,3 +107,5 @@ stdout:write("\n")
>  stdout:write("DEALLOCATIONS", "\n")
>  view.render(events.free, symbols)
>  stdout:write("\n")
> +
> +os.exit(0)
> ===================================================================
> 
> -- 
> Best regards,
> Sergey Kaplun

-- 
Best regards,
IM


More information about the Tarantool-patches mailing list