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 030AC727D0B; Wed, 6 Dec 2023 21:55:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 030AC727D0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1701888928; bh=hlww2YTawHlp41L6V1UIwG3sXl79Kmm6lvW+bD5mXjE=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=jWC2rbrFxFIxWjqAdY4AB8KNyr2BZYXrI6xp5599CPvrq7TaIUw6mdFcZNwsuG7bI Z5+3Qcb+q4EfyAE3o97pHdJD6FEGpRRD9gnIiXHlJakE8W6Q3yIpuZuHkZnLdYj3y9 r5yoRBKVYFpa/Bb3o8uOE3C+86p1JYtWBagM9FPo= Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 2BDB76B7200 for ; Wed, 6 Dec 2023 21:55:26 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2BDB76B7200 Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-50be9e6427dso131956e87.1 for ; Wed, 06 Dec 2023 10:55:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701888925; x=1702493725; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6vml0pnAEzvVhqX/XOI/QC43ZPPWVG//e6Xls6LSleA=; b=Xn4zQaB9X+cCoE3k9avYMuQA+6xdSAhObdvRqdildH7D9Ce8GqUeA8UCKvJ2ItdIsI YY7cdZKtbuBIc9wZv73RM/G93b8/AeuzHjNiihDc1InXjjOICS6X3FPbmoqO7Qr4u0U1 d2ITJpT9grDYHn4PSiGaIs1xkA/ie0ogSLTS1cbCUA5Wm0syK6PgRLHx+2+ChxK7ICZz +dm7ipTaBk9CeZUiGUb02JIy5vcSdQKSsD814jkeIVSCNdsLOBNER6lNcM0iQhLH7BIh VfetgeilR+4thEKAqtf7HrZNPSATjqWiibLRc36KUpcgzfvsC3So4gC1ZbVA8wcR4FWP qRqQ== X-Gm-Message-State: AOJu0YyctFjiTeZdmd1fa4O9SnpBoruEtcc8/zQGGTxQagnJSWjXGnz8 egBWTscjFnzC1G8aIcKBODtAYvhIoN8i8w== X-Google-Smtp-Source: AGHT+IEM69FJgdP2SeTfNSRczk6mxTUiRVhFiiNcSqgPl23J6pahe1C/mruusHfKWycFLZsG8Vwitg== X-Received: by 2002:ac2:57c3:0:b0:50b:f36c:eb54 with SMTP id k3-20020ac257c3000000b0050bf36ceb54mr763396lfo.52.1701888924783; Wed, 06 Dec 2023 10:55:24 -0800 (PST) Received: from localhost.localdomain (95-24-1-238.broadband.corbina.ru. [95.24.1.238]) by smtp.gmail.com with ESMTPSA id t23-20020a199117000000b0050c0320f167sm606367lfd.245.2023.12.06.10.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 10:55:24 -0800 (PST) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, skaplun@tarantool.org, sergeyb@tarantool.org Date: Wed, 6 Dec 2023 21:55:15 +0300 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v2 0/6] profilers: refactor 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: Maxim Kokryashkin via Tarantool-patches Reply-To: Maxim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Changes in v2: - Fixed comments as per review by Sergey Kaplun Branch: https://github.com/tarantool/luajit/tree/fckxorg/profile-parsers-refactoring PR: https://github.com/tarantool/tarantool/pull/9438 Issues: https://github.com/tarantool/tarantool/issues/5994 https://github.com/tarantool/tarantool/issues/9217 Maxim Kokryashkin (6): build: purge sysprof.collapse module build: fix tool components handling memprof: refactor `heap_chunk` data structure memprof: remove unused arguments memprof: introduce the `--human-readable` option profilers: print user-friendly errors Makefile.original | 16 +++- .../gh-5688-tool-cli-flag.test.lua | 4 +- .../gh-5994-memprof-human-readable.test.lua | 73 +++++++++++++++ ...17-profile-parsers-error-handling.test.lua | 90 +++++++++++++++++++ tools/CMakeLists.txt | 14 +-- tools/memprof.lua | 33 ++++--- tools/memprof/humanize.lua | 46 +++++++--- tools/memprof/parse.lua | 22 +++-- tools/sysprof.lua | 10 +-- tools/sysprof/collapse.lua | 3 - tools/sysprof/parse.lua | 2 +- tools/utils/safe_event_reader.lua | 34 +++++++ tools/utils/symtab.lua | 2 +- 13 files changed, 298 insertions(+), 51 deletions(-) create mode 100644 test/tarantool-tests/gh-5994-memprof-human-readable.test.lua create mode 100644 test/tarantool-tests/gh-9217-profile-parsers-error-handling.test.lua delete mode 100755 tools/sysprof/collapse.lua create mode 100644 tools/utils/safe_event_reader.lua -- 2.43.0