From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Making elp.el behave like a real profiler Date: Wed, 17 Aug 2022 14:33:10 -0400 Message-ID: References: <87v8qr2pof.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000087fd2705e6741959" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14374"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Winston Carlile via Emacs development discussions." , Winston Carlile To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 17 20:36:05 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oONtc-0003bv-Lt for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Aug 2022 20:36:04 +0200 Original-Received: from localhost ([::1]:59016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oONtb-00062T-Jl for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Aug 2022 14:36:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oONr6-00043p-NQ for emacs-devel@gnu.org; Wed, 17 Aug 2022 14:33:44 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:40479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oONr4-0005Eg-1i for emacs-devel@gnu.org; Wed, 17 Aug 2022 14:33:27 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id l10so14351170lje.7 for ; Wed, 17 Aug 2022 11:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=xsvwRcd5/sXL4/5M6sTbSKjU4OQJW9HcXUS8MlJTb2o=; b=eC21QEJdksclcddkgPZV6urYWKGQNOGqL4kRQ+OeMUi5mjKS2HPzU0PHRS1tBOlnkd hC0gaDdjYEgPNnB2Pkfo3BMY7K5zfjZiiDyDNdrAnhLjN1RYY23iGW+30jypt88+C0Py IO8NbF53zeOdtZCGKbgg/Qzjk9ppVqOi1Z2ccR3/8Xl/zkwl8sHQrQ9Y1IZO4G3D3e6Z 2ug0gWcoNfQ7zReOMdtf1sTQfWOkcV8NWXDkQZhcbHCHJVDoV68uS43xHSL0LG1VbxY/ NLnGtxw+PLonvePG9Z5cPU5Buq+AFfk1gjaJEi7xEqpUakj6E5UG+XxpNpfTNx+Uqv7Y vLXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=xsvwRcd5/sXL4/5M6sTbSKjU4OQJW9HcXUS8MlJTb2o=; b=lfuiSMImWDYoTReFz54lZkVAhq7qI5XDedTZjMT3+paLJJsL/72UtZEroS0udwfRtw lPKqJJFUpBVyhEBYAuXxg0TTMHpPje8hlRrtYvXyt0Z40Wiyf5Yw/UJZTO9Or7juIB2c JPMVjIa5KXoXAmXD5NiAUBzozNfpkb4MfdllqevnuRAvr1+YcG8pY7dobdAKxtHvTlmK CsXLwGpCWTnZMk1PqwN5oo5QPv1o9Dz1BBA8qDRN6jVoQZEDu28l2nRHPWGigHtAylqS d/426iu7e2WlmAkcokA/zlHqSw82okzr1Dm7DtCyB5Nq1wOjOidB9/qsFpt5DG0nJmiV hIgA== X-Gm-Message-State: ACgBeo3YLIuitV/YVnHipkbv/YVeSwo3mHlagTTMeN3HFJI64yE6O3OP PjjBntTUa+MNVFm6cqRJWM9OUj/8+ZLMvjgIukg= X-Google-Smtp-Source: AA6agR6aQe9sQGUmPSl27Fdwa8aalz+ll1Fydtx7i2nK4SDGAcBP2XlQ2Ye5VnCY8Qwql/ch4i2nCOLXq9x4gw32piM= X-Received: by 2002:a2e:88d1:0:b0:261:872e:b09f with SMTP id a17-20020a2e88d1000000b00261872eb09fmr5393194ljk.375.1660761202489; Wed, 17 Aug 2022 11:33:22 -0700 (PDT) In-Reply-To: <87v8qr2pof.fsf@gmx.de> Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=yandros@gmail.com; helo=mail-lj1-x229.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293572 Archived-At: --00000000000087fd2705e6741959 Content-Type: text/plain; charset="UTF-8" > > In my experience, most time in Tramp is spent on wire. That is, sending > commands to the remote shell, and reading the command's output. Compared > with this, time spent in Elisp is not so important (although any > optimization will be appreciated as well). Based on this, I wonder how useful/difficult it would be to add a sort of "ping timer" to buffers that make regular use of remote commands, measuring the delta between just before the most recent send and the following (assuming no interleaving) recv. With that raw data, it should be relatively easy to add things like a moving average and/or an alert for sudden spikes. Would this be more likely to result in a useful diagnostic or a computed indicator that slow things are slow? ~Chad --00000000000087fd2705e6741959 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In my ex= perience, most time in Tramp is spent on wire. That is, sending
commands= to the remote shell, and reading the command's output. Compared
wit= h this, time spent in Elisp is not so important (although any
optimizati= on will be appreciated as well).

Based on t= his, I wonder how useful/difficult it would be to add a sort of "ping = timer" to buffers that make regular use of remote commands, measuring = the delta between just before the most recent send and the following (assum= ing no interleaving) recv. With that raw data, it should be relatively easy= to add things like a moving average and/or an alert for sudden spikes.

Would=C2=A0this be more likely to result in a useful = diagnostic or a computed indicator that slow things are slow?
~Chad
--00000000000087fd2705e6741959--