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 AB07F6901E; Wed, 14 Apr 2021 17:35:07 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org AB07F6901E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618410907; bh=GIrApcxf2YtySvGEw7XBpTCeSsZZZu0rfYHw7+xZpww=; 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=EGL3AvlwkUaQPKQq6I/K9XkzFh6KN2+M9zEx3AajVsShO+OWvx07gjSCpTlQyrLWA MXsbW1txPLXfA0cq+GA1sGiMY9p6CrDZz1qijpjYZiBoQ64MAzSsm2y6t1A/mr48ve cIwPoGQCUP6RE+2Y2E9s+5GKgL3gwrM4l0MIKtBY= Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 7F1556901B for ; Wed, 14 Apr 2021 17:35:06 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7F1556901B Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1lWgbh-00049n-FS; Wed, 14 Apr 2021 17:35:05 +0300 Date: Wed, 14 Apr 2021 17:34:53 +0300 To: Sergey Kaplun Message-ID: <20210414143453.GA29703@tarantool.org> References: <20210331172948.10660-1-skaplun@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210331172948.10660-1-skaplun@tarantool.org> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.10.1 (2018-07-13) X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E7480BE79914FF86F9151AC38CC435EA4A654182A05F5380850409C10B9D0F465D3393B4B67486932571D0FE6B332ECD3ED4E1E0EB81240A53997 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78BAADB77C21FF6F2EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006373103A56A89D9083FEA1F7E6F0F101C67CDEEF6D7F21E0D1D9295C2E9FA3191EE1B59CA4C82EFA658A9496DF155ED6DE4F29CD860AEF82450F6B57BC7E64490618DEB871D839B73339E8FC8737B5C22498424CA1AAF98A6958941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6D082881546D93491CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB86D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F79006375F081080233BD282EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A57FA0BC2BD666D2B405E75938C9EB35C61D1AFD7804F41C98D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34D8C933888226C841C5874668F4BC560DB777B514A48CF7F9F69703691C30BF11222AA9C6A3C5F3E91D7E09C32AA3244C79664A38467030CE846EBEDC795832B6FE8DA44ABE2443F7927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojrcJA+pXcDukcq4P3QwwMrg== X-Mailru-Sender: 689FA8AB762F73936BC43F508A063822F0842087C12F1B55CDC24CBC1900245FA7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit] tools: introduce --leak-only memprof parser option 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" 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 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 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 > > -- > 2.31.0 > -- Best regards, IM