From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 0F73F6EC117; Thu, 23 Nov 2023 09:41:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0F73F6EC117 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1700721708; bh=ZhPY6A+TuPJRk4+HWONMiXQ2dxsSNOUUzzP01zQrunY=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=YWMO90SoLn7HzZAs/eAd9ZYdbbohUTgr6pp8peumrFWqwi6E1Bcqf5s+VBeQzHQLv +fgPnZWZ9QptProIW2D04yQ484+ib5++ppuUsOX4FE/y4bOLZK3Cp1cFS/5sUadET8 +XOTnReHXDTZ2imBlWDAvfh6O2yzJesvFjzjfIJ8= Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [95.163.41.88]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id A11CC6EC117 for ; Thu, 23 Nov 2023 09:37:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A11CC6EC117 Received: by smtp52.i.mail.ru with esmtpa (envelope-from ) id 1r63L4-00BfTh-0v; Thu, 23 Nov 2023 09:37:26 +0300 Date: Thu, 23 Nov 2023 06:33:02 +0000 To: Maxim Kokryashkin Message-ID: References: <1b01124ea966b486d9462dea0d3653a45c4f81b1.1693481682.git.m.kokryashkin@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1b01124ea966b486d9462dea0d3653a45c4f81b1.1693481682.git.m.kokryashkin@tarantool.org> X-Clacks-Overhead: GNU Terry Pratchett X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD92D71B79D2A671AE613047E28574C7AC15F5583C33CC4AD31182A05F5380850408B03F279CBB7F2EF82FE2E6C3023A3EF83F185504F549A749BF4BE1753F304E3 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE72F22E6DC541F75D9EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637334E2757C55E8D4EEA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38B73AB1701401CD8710A0B7E77234A129371A678A752DE2393CC7F00164DA146DAFE8445B8C89999728AA50765F7900637BA939FD1B3BAB99B389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC878444BBB7636F62AF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947CF8BD4E506CFA3D8803F1AB874ED890284AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C325C33BDE98D8A053BA3038C0950A5D36B5C8C57E37DE458B330BD67F2E7D9AF16D1867E19FE14079C09775C1D3CA48CF4964A708C60C975A1DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C39D7D3120FB43BDE335872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A5CF9E95DB726F87A1BAD3D94B7AF882C321659CD763E40EC6F87CCE6106E1FC07E67D4AC08A07B9B05E3BF8C76DC23F74CB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFD3C26C001F34280D08FCA1F5671ACC623DA3CC321BB06F51E44722554E788F165C1052AD1686EE736E159192F517E6718BCBDAF6F93A0B3A3D5A22E9F0661B86A74DFFEFA5DC0E7F02C26D483E81D6BEECAEF3E2CCC1ED8C383653B6C8D9AE0FD16FCAA6493B703A X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojOz05VK5QHNqYDpZQ+dsUYw== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531F5FFE8C72113DAC096EA6A011DFF54E9283F19917E8B64E82326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit v9 1/2] tools: add cli flag to run profile dump parsers X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Max, I've checked this patch into all long-term branches in tarantool/luajit and bumped a new version in master, release/2.11 and release/2.10. On 31.08.23, Maxim Kokryashkin via Tarantool-patches wrote: > It is really inconvenient to use a standalone shell script to parse > binary dumps from profilers. That is why this commit introduces a > CLI flag for tools in the LuaJIT, so now it is possible to parse > a memprof dump as simple as: > ``` > luajit -tm memprof.bin > luajit -tm --leak-only memprof.bin > ``` > > And the sysprof too: > ``` > luajit -ts sysprof.bin > luajit -ts --split sysprof.bin > ``` > > The `luajit-parse-memprof` and `luajit-parse-sysprof` are purged > as a result of these changes. > > Closes tarantool/tarantool#5688 > --- > Makefile.original | 24 +--- > src/luajit.c | 44 +++++- > .../gh-5688-tool-cli-flag.test.lua | 127 ++++++++++++++++++ > tools/CMakeLists.txt | 73 ---------- > tools/luajit-parse-memprof.in | 6 - > tools/luajit-parse-sysprof.in | 6 - > tools/memprof.lua | 12 +- > tools/sysprof.lua | 18 ++- > 8 files changed, 186 insertions(+), 124 deletions(-) > create mode 100644 test/tarantool-tests/gh-5688-tool-cli-flag.test.lua > delete mode 100755 tools/luajit-parse-memprof.in > delete mode 100755 tools/luajit-parse-sysprof.in > > -- > 2.41.0 > -- Best regards, IM