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 E65ED70295; Thu, 2 Dec 2021 14:03:38 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E65ED70295 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1638443019; bh=/DWcXNbLENoBF7saLnZfpgAxmcU5lrt4QzYmTBaBEZM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=O7qnA8kU1bu/N/KoqeI4PdLpU/aShCUb0h+vZ0Y++vcOZ7CAfCXamOQWnATCuhYDD y9cP9pLRiafSXNTQBVbrOTtFArOpfpbeCBPlEUc7DIxQg894aPzKEcVevgZbGQb4er maj9jvje28nVvk8oPz1DzqEdmu+XxHm+RNiN2szE= Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) (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 A652670152 for ; Thu, 2 Dec 2021 14:03:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A652670152 Received: by smtp17.mail.ru with esmtpa (envelope-from ) id 1msjsG-0005pZ-Rb; Thu, 02 Dec 2021 14:03:37 +0300 To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Thu, 2 Dec 2021 14:03:26 +0300 Message-Id: <20211202110329.664738-1-m.shishatskiy@tarantool.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD93822B471089FF64DFA455658C3104DE9BDD9AB7435BCB66C182A05F53808504065CD5FE5F8FF2936CD2E02F1A8B36482BF3D4D86B102E6FC671008640824F4EF X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F65C230EDDCD559EEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006374B2D40F594293EAD8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D887C9CCF2FA0979C518498AA4BAE7C4C3117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC2EE5AD8F952D28FBA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD18CB629EEF1311BF91D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEC24E1E72F37C03A0E7815D572A9D6896D8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE364E7220B7C550592AD7EC71F1DB88427C4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637F765F39FA4E70FFE43847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CBD1FC2C1415E7E9DF53794FCFBA63E034BD71B4ACFA07E8F9C2B6934AE262D3EE7EAB7254005DCED60723831D8DB722692E1F3B950BCE21616EB5DE968479BF5B2CF3E77A3BD9B2CBDC6A1CF3F042BAD6DF99611D93F60EFA50BD5087FBFCDAA699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34E20F2278F74481A174672096BB7433C1AFF482FB7699DBD6A51C6956AE2A6B9CB1316BF516D818C01D7E09C32AA3244CA671DF8E807A4678B6CB10DBE109A3345A1673A01BA68E40927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgikCeLijfTIn/Eq1C5U/9f X-Mailru-Sender: EFA0F3A8419EF216ABF90D481445BA3FDC9FB87ADC5E270CCD2E02F1A8B364827CF96F699FB252592376072A51849BFFE66B5C1DBFD5D09D5E022D45988A037B448E0EA96F20AB367402F9BA4338D657ED14614B50AE0675 X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit v2 0/3] memprof: enrich symtab when meeting new prototype 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: Mikhail Shishatskiy via Tarantool-patches Reply-To: Mikhail Shishatskiy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Patchset v2 with some adjustments based on previous patch series, and several fixes with improvements: - Removed "change order of modules patch"; - Changed order of patches so that patch with symtab enriching works correctly straingt away, and not after applying "on the spot demangling" patch; - Changed flag representing that object has been dumped to an epoch counter to respect consequent memprof launches. Issue: https://github.com/tarantool/tarantool/issues/5815 Branch: https://github.com/tarantool/luajit/tree/shishqa/gh-5815-enrich-symtab-when-prototype-is-allocated-v2 Tarantool branch: https://github.com/tarantool/tarantool/tree/shishqa/gh-5815-enrich-symtab-when-prototype-is-allocated Mikhail Shishatskiy (3): memprof: add symbol epochs memprof: enrich symtab when meeting new prototype memprof: substitute long proto names with aliases src/lj_bcread.c | 3 + src/lj_memprof.c | 35 +++++++--- src/lj_memprof.h | 13 +++- src/lj_obj.h | 10 +++ src/lj_parse.c | 3 + src/lj_state.c | 3 + .../misclib-memprof-lapi.test.lua | 55 ++++++++++++--- tools/memprof.lua | 1 + tools/memprof/humanize.lua | 14 ++++ tools/memprof/parse.lua | 51 ++++++++------ tools/utils/symtab.lua | 68 ++++++++++++++----- 11 files changed, 196 insertions(+), 60 deletions(-) -- 2.33.1