From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxim Cournoyer Newsgroups: gmane.lisp.guile.user Subject: Re: Heap profiler Date: Sat, 12 Nov 2022 22:29:09 -0500 Message-ID: <874jv3ttve.fsf@gmail.com> References: <87k047uiul.fsf@inria.fr> <865yfky186.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13054"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-user@gnu.org To: zimoun Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Nov 13 04:30:09 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ou3hB-0003Cn-4e for guile-user@m.gmane-mx.org; Sun, 13 Nov 2022 04:30:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ou3gK-0002ti-PQ; Sat, 12 Nov 2022 22:29:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ou3gI-0002tU-VW for guile-user@gnu.org; Sat, 12 Nov 2022 22:29:14 -0500 Original-Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ou3gH-0005lh-Hf; Sat, 12 Nov 2022 22:29:14 -0500 Original-Received: by mail-qk1-x72f.google.com with SMTP id s20so5608683qkg.5; Sat, 12 Nov 2022 19:29:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=1FPnfRsDquDqDdG49hshtOfxtcLHEGx3RucMeQOUwQw=; b=Xtpewsx9ckRhbPyfo3BTxI5dUP4mb8o6xoi9YTebn2bntIGDh31R4LZF/Hno+cuVl2 K+8a4C84YiDvaNweSSYkY1Qoju5H5w/8q5ciIyAvAk9cthoSkiwBwInH6npG2ocUfubL tiW3+Lg2USvFc9isxSwg0r8wTnmP63rFquHnAuadAWjGfxYjVw9jcXGYVDxMQyvdcCT0 +8jouST0Xix48/tjyXPPEqTT1dP3Ay2Q2dpD/l6V4csRBjOVB6N/NjUI5zTDJ9odnSx3 M9chF1oaApIHo0HIpraOQRRrazonFTkVajRW7wj8I1HS8cXbHNHPGoEJNVOYW2SqAko6 MN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1FPnfRsDquDqDdG49hshtOfxtcLHEGx3RucMeQOUwQw=; b=ZmRoH+V/NCKroag++oeQHRaIw02OYLMLgyMa/QYoB+9Dqyi2DelpYNjoIPyZVzTHt6 EIqCTOt1Q3wLPnBnZp29lj55qkmaVkW0AkfnelG57cPK4SAgQ1/nukKERKd4709zSPyW twtj042lVwSx9xPH61OOxww5TVK6mgfSA4vgdvdSP8ak5/POEaubqhfM1/HyBcBJxz6Q QAXBy0N5cCFh1+akFvKkr7cchKByFnV0i2kbc1rs4M/xCnOQWNRkX8lc1j/83eHWfyDL xU3uuAG9SE5q1rsA0nS3qN66LUlzmYpUGPCaLya80HjSBqUQNchrX5kS5ZAnd/fl5yEM 3Mtw== X-Gm-Message-State: ANoB5plSvAWyHAuPVBqcXu8rDkW091J96Gs+OJeEtIZm0F82FPe3KnUC +XCDHDM5S5CMncrFwGlGKU/PHNXXv90= X-Google-Smtp-Source: AA0mqf5yTEys7lGDMgZxdO5/V4jmupW0iH+wIRFe2MXKlBsk/KI+ScpCLPqzdLQ/UdczekIwKsnjTA== X-Received: by 2002:ae9:c002:0:b0:6fa:fc90:b4f5 with SMTP id u2-20020ae9c002000000b006fafc90b4f5mr6938260qkk.485.1668310151046; Sat, 12 Nov 2022 19:29:11 -0800 (PST) Original-Received: from hurd ([2607:fad8:4:3::1001]) by smtp.gmail.com with ESMTPSA id s1-20020a05620a29c100b006faeecef56fsm4214540qkp.68.2022.11.12.19.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 19:29:10 -0800 (PST) In-Reply-To: <865yfky186.fsf@gmail.com> (zimoun's message of "Sat, 12 Nov 2022 10:24:25 +0100") Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18731 Archived-At: Hi, zimoun writes: > Hi, > > On Mon, 07 Nov 2022 at 12:03, Ludovic Court=C3=A8s wrote: > >> --8<---------------cut here---------------start------------->8--- >> scheme@(guile-user)> (profile-heap) > > [...] > >> sampled heap: 3.48865 MiB (heap size: 12.78906 MiB) >> $5 =3D #t >> --8<---------------cut here---------------end--------------->8--- >> >> It samples the GC-managed heap and counts the number and size of objects >> of each type. The =E2=80=9Cunknown=E2=80=9D bit is anything that lacks = a type tag, such >> as stacks allocated for delimited continuations by =E2=80=98capture_stac= k=E2=80=99 in >> libguile. > > It could nice to have it by default. For instance under =E2=80=99,help pr= ofile=E2=80=99 > with something like =E2=80=99,heap [,ph] - Profile heap memory executatio= n=E2=80=99. Or > elsewhere as =E2=80=99,help system=E2=80=99 close to ,gc. +1 :-) --=20 Thanks, Maxim