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 73D756EC55; Sat, 21 Aug 2021 15:50:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 73D756EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1629550221; bh=s/w0jtEp/qPOX6gUSjHr3OmQ85afFnK9YyrzseCmz30=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=KgGjnguUp/4AjDIvSfNzy6nrynZaOSmI7JzyRsVm99G/aaD07IDgls//sUIzgYyVr hX/NaL2HIL1dZW9l4DwapEUIqOcGhIFUJ6wb+8sbP8B6Xs0BURLWjJLtrvbgQwDyi5 jQb+0NVAjOuYCAXKQud2h0V0MJ08QNW0whoyP52M= Received: from smtp57.i.mail.ru (smtp57.i.mail.ru [217.69.128.37]) (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 B19EC6EC55 for ; Sat, 21 Aug 2021 15:50:19 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B19EC6EC55 Received: by smtp57.i.mail.ru with esmtpa (envelope-from ) id 1mHQS2-0007xl-80; Sat, 21 Aug 2021 15:50:18 +0300 To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Sat, 21 Aug 2021 19:49:58 +0700 Message-Id: <20210821125002.408132-1-m.shishatskiy@tarantool.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD9ECFD080E047A606F56291F8739A291D6182A05F5380850400FDF9627CADEF4F268E2B73EA08833C2DBDCE219D482D1B3FCDD3D7FC42C1FF0 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE749E89BD568380EECC2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE73F64378C139886A6EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F227B6E1E47AB480CA00A4CC37AEC955FACC7F00164DA146DAFE8445B8C89999728AA50765F79006375FFD5C25497261569FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3253F27DA5A70FAF3117882F4460429728AD0CFFFB425014E868A13BD56FB6657D81D268191BDAD3DC09775C1D3CA48CF01DBAC6D426E8377BA3038C0950A5D36C8A9BA7A39EFB766EC990983EF5C0329BA3038C0950A5D36D5E8D9A59859A8B61638054B7D09EC083AA81AA40904B5D99C9F4D5AE37F343AEF057EEF6CDF3A213BBE47FD9DD3FB595F5C1EE8F4F765FC72CEEB2601E22B093A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E735A3CCBC2573AEBDE1C4224003CC83647689D4C264860C145E X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B505CC4EF59ED8B602CCB9495A95410DEAD7 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C8DC2057B3FE6961BFDCAB65A71FF125B9FBA4D0D41903B289C2B6934AE262D3EE7EAB7254005DCED1CEB7BADD2D18F2692E1F3B950BCE21616EB5DE968479BF5B2CF3E77A3BD9B2CBDC6A1CF3F042BAD6DF99611D93F60EFB0E9FD5D4288160E699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34D95739AEDB3821B404EF76DCAE3508A8F66727D65B041437B81DA0AFC5BB5A1C0C6DC0CAC6691F811D7E09C32AA3244C8B1F411268649E826C62E59103E0AFABB038C9161EF167A1927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojzcVJReGZsqPch2AGSMg/Cw== X-Mailru-Sender: 2317F5BEA8D613097CB8A225516EF02745036F1BE5D654E3811BD92A2A1FAC1AE031BC4AFA1BE1A9FF6B26DEAE20951894E739346DD9ABB838AE394B99C5394F99323991B04ED3930F27244EEAA5B9A5AE208404248635DF X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit v1 0/4] 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" Here the results of benchmark [1] for introduced patchset. The time is average for 15 runs: | -------------------------------------- | | JIT-off, memprof-on | | -------------------------------------- | | BEFORE | AFTER | | ------------------ | ----------------- | | 5.3859 (0.0325) | +0.2534 (0.0248) | | -------------------------------------- | BEFORE branch: https://github.com/tarantool/luajit/tree/shishqa/gh-5679-report-jit-allocations-as-internal [1]: https://gist.github.com/Shishqa/94152d538816fc64b68200336e6305d3 Issue: https://github.com/tarantool/tarantool/issues/5815 Branch: https://github.com/tarantool/luajit/tree/shishqa/gh-5815-enrich-symtab-when-prototype-is-allocated Tarantool branch: https://github.com/tarantool/tarantool/tree/shishqa/gh-5815-enrich-symtab-when-prototype-is-allocated Mikhail Shishatskiy (4): memprof: enrich symtab when meeting new prototype memprof: demangle symbols on the spot memprof: substitute long proto names with aliases luajit: change order of modules src/lj_bcread.c | 1 + src/lj_memprof.c | 19 +++- src/lj_memprof.h | 16 ++- src/lj_obj.h | 7 ++ src/lj_parse.c | 1 + .../misclib-memprof-lapi.test.lua | 102 +++++++++++++----- tools/memprof.lua | 5 +- tools/memprof/humanize.lua | 51 +++++++-- tools/memprof/parse.lua | 67 ++++++++---- tools/memprof/process.lua | 12 +-- tools/utils/symtab.lua | 20 +++- 11 files changed, 230 insertions(+), 71 deletions(-) -- 2.32.0