From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp48.i.mail.ru (smtp48.i.mail.ru [94.100.177.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id E74C24765E0 for ; Mon, 28 Dec 2020 08:31:13 +0300 (MSK) Date: Mon, 28 Dec 2020 08:30:27 +0300 From: Sergey Kaplun Message-ID: <20201228053027.GK14702@root> References: <03ac70e3bfb9bf7061ad71c1bac50ed3f8e853fc.1608907726.git.skaplun@tarantool.org> <20201226225651.GI5396@tarantool.org> <20201227071656.GA9101@root> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201227071656.GA9101@root> Subject: Re: [Tarantool-patches] [PATCH luajit v2 7/7] tools: introduce a memory profile parser List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Munkin , tarantool-patches@dev.tarantool.org Adjusted 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