From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: zimoun Newsgroups: gmane.lisp.guile.user Subject: Re: Heap profiler Date: Sat, 12 Nov 2022 10:24:25 +0100 Message-ID: <865yfky186.fsf@gmail.com> References: <87k047uiul.fsf@inria.fr> 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="1222"; mail-complaints-to="usenet@ciao.gmane.io" To: Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Nov 12 12:25:07 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 1otodH-0000Ar-Nq for guile-user@m.gmane-mx.org; Sat, 12 Nov 2022 12:25:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otocY-000727-Rz; Sat, 12 Nov 2022 06:24:23 -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 1otocQ-0006zW-AA for guile-user@gnu.org; Sat, 12 Nov 2022 06:24:14 -0500 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otocN-0004GJ-TS; Sat, 12 Nov 2022 06:24:13 -0500 Original-Received: by mail-wr1-x430.google.com with SMTP id z14so9529107wrn.7; Sat, 12 Nov 2022 03:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=15dU0cTQ918cu+q6ceFwghVimq3c0kWLVoy5T9Q00K0=; b=T5X7eVhUfBAGYMndPJMtnc1/v4Dm35aPrQJ4J0rvLyy1VaR1kPVt5WkITrndfqf5Vc GTOHrQWSsTvrayBT5vXkr3paVJ9dvjfK7KQTyYSGugQVYPqhWkxXEthREAngAfD1nceD 0u7x4uP1u/P3yeVEJUz77haa9eqdqz6kgPs0b1vPoamTaNDXP8IZwIE2lz4N3XAM9X8o 3t6TnXUZaQSPLjP6W96a7LSA01Cw0ENdfTVI3qE+gXAjtOiAb/zaCCVNark8hgWsmLqo wUheD5iwHriNaUNOwEhqVI8RA8PupI3sWK/byyKohBT6hfJDoT5g9Bn24ll4YynEwPo9 2juw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=15dU0cTQ918cu+q6ceFwghVimq3c0kWLVoy5T9Q00K0=; b=E9ZxATnfpLNAQ+5zsk/PzFkGl2Y7jL1fiWCVUNX7dbC3j27qxX/zwZj3AQdyhbgGzl 6T/HaZVo3II7aDpNXUtmm2ExI244GVrojC2UcV8wjwCNnnN9aWcdWIJXtP/j68/v+iC7 P9KOh85ZLo4cP44DiWDj8vKij/X7fD6B9pJ8N9/DMhCdLrQWefNWATOqR9Tp7+5Y9XR1 3UfN5yWKSB9RbxcmxXEO5GbnOKPEWETGR6Dd3cB8Qn6p5jpoN91mbySWW4dKmPJp+y3X 8kSyMqun53mdS4R/wMio4Hs2cys1/ygjUjR/EOmRWtiLv8BsVKjwXu/9lk6jxmnPLOI0 Htnw== X-Gm-Message-State: ANoB5pnjJQeoPR61q3v6BsTTCbokGIB8Fh+e8AmAUCH31Qlt8hzf44CD ilTWDRFGcSdeVh/TmvPeRf1tawv+e2A= X-Google-Smtp-Source: AA0mqf6zEnxbkULUvS513AW6WWQUHdUJV0qF9zwDeQjhwL3bFwF/7heXHnmevEDcsprIGM/D26Xh2g== X-Received: by 2002:adf:f145:0:b0:236:5270:735e with SMTP id y5-20020adff145000000b002365270735emr3235118wro.659.1668252248548; Sat, 12 Nov 2022 03:24:08 -0800 (PST) Original-Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id bl21-20020adfe255000000b002366dd0e030sm4121338wrb.68.2022.11.12.03.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 03:24:07 -0800 (PST) In-Reply-To: <87k047uiul.fsf@inria.fr> Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x430.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:18727 Archived-At: 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_stack= =E2=80=99 in > libguile. It could nice to have it by default. For instance under =E2=80=99,help prof= ile=E2=80=99 with something like =E2=80=99,heap [,ph] - Profile heap memory executation= =E2=80=99. Or elsewhere as =E2=80=99,help system=E2=80=99 close to ,gc. Cheers, simon