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

Sergey Kaplun skaplun at tarantool.org
Mon Dec 28 08:30:27 MSK 2020


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


More information about the Tarantool-patches mailing list