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 7B051727D10; Wed, 6 Dec 2023 21:57:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7B051727D10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1701889048; bh=Zz8bVwPcZuFBrCqlTMZAuNL91tEkf7EXLBi2Wkgzj+Q=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=T7myJw4iZ6Qw7mT6OMe7MBT2kS56iCwGu0l7VjOoL+zldCqb0X8Fci8h6CLlPtCMj Mk59LKPa6w9FnIZbsvdI7EBs5PTTde0MmGeN3hfqytaPLQxdbhvlv7Nmv/EwOGkCXT B1MVnEwUNDcJ/DYIEGbhP9+vIoXDUMbXkxpAtOCw= Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 22BF8727D10 for ; Wed, 6 Dec 2023 21:55:40 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 22BF8727D10 Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-50bce78f145so151587e87.0 for ; Wed, 06 Dec 2023 10:55:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701888939; x=1702493739; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gMjdvORiPpWlylc9mMUkzfkS6yuOal0/jtFdCBHRWvY=; b=KUeHWkpNvGu5jC+oz3cPc76u2uU+JyM4+or+8WyL7ENvmMrGlqNzQLGfhNI4o/l7ay xLAk0+I7RINvyaDenYUo5P7KARJ81N8izs1VOTV+XmyEteCFZWpS0ezdbImPG3+Hy/1M ovQ/GVh37nCK6BAeJXNfexQ981VK//ez8vkWxjtnszXJjZPDnyeQDcUmLKWai3NE9mSO A54N+jl/1hadD4/LM+jzmKg0Q4JjKtTpTLg7Iik+f1aUGb6H6fhPLjamaGXaRb5Gs3np lo8pwI/gq9V/kfUS0Fd2QfSN6O+jlTRaVj2L6+4kZoD5wYzllGyFE3CqlE3E0m8vFsy1 hkmQ== X-Gm-Message-State: AOJu0Yyb8/Tf9IaHwTZrvqVD4in4FfHdC1ozW0YMUl4YUGBU5e9Y+QnM Z8XK56xIaMjWMUsKq7VH5lK73BhqTbN5JA== X-Google-Smtp-Source: AGHT+IHzPwhsfE3RWPbE3I4ELzlJHWGlDv/1l0CVY9NiYBpwbiCXZ8weG8mMFb292xIsZ4IGIuDs6g== X-Received: by 2002:a05:6512:2349:b0:50b:ccc1:201e with SMTP id p9-20020a056512234900b0050bccc1201emr640720lfu.0.1701888939289; Wed, 06 Dec 2023 10:55:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 10:55:38 -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:19 +0300 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v2 4/6] memprof: remove unused arguments 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" Both `humanize.profile_info` and `process.form_heap_delta` don't need the symtab, so the argument can be dropped. Part of tarantool/tarantool#5994 --- tools/memprof.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/memprof.lua b/tools/memprof.lua index e23bbf24..955a1327 100644 --- a/tools/memprof.lua +++ b/tools/memprof.lua @@ -102,9 +102,9 @@ local function dump(inputfile) local symbols = symtab.parse(reader) local events = memprof.parse(reader, symbols) if not leak_only then - view.profile_info(events, symbols) + view.profile_info(events) end - local dheap = process.form_heap_delta(events, symbols) + local dheap = process.form_heap_delta(events) view.leak_info(dheap) view.aliases(symbols) -- XXX: The second argument is required to properly close Lua -- 2.43.0