From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Is it possible to profile elisp? Date: Sun, 20 Nov 2022 22:20:55 +0200 Message-ID: <83fsed4btk.fsf@gnu.org> References: <2BB789D5-7DC8-4A5E-983E-A8595895A464@easesoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2274"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 20 21:21:35 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1owqoo-0000OG-JI for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Nov 2022 21:21:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owqo2-0007Z0-QB; Sun, 20 Nov 2022 15:20:46 -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 1owqo1-0007YD-9A for help-gnu-emacs@gnu.org; Sun, 20 Nov 2022 15:20:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owqo1-0006z4-12 for help-gnu-emacs@gnu.org; Sun, 20 Nov 2022 15:20:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ips8ngl9YXERvnoLqVtWw2AKz4FHrNR5l5hUOaAIr+M=; b=W2wXV8OT+Dam0sem8tb7 eHCXFKayb6wWtGMEUKksImOfEdhlEvQXYJH2/5YZ4l4r7lyiPz5bn1DI2YBoL4qnO9DvVHjeebcJd fY7mh1itlXy3uIiaw3G/cjq7RATaq57UBHRHRoQOux4Lorv9Kqtf7fyJYEb5u6T+gZASr+PcpagWA uXByWfhbMOHl3ddF9oUK9pRlstO0X0F/RE2cQyYYuqsv8yyYakhCPADaSpGL4IKfchZxRLImjeZNv TuS71BMxqz0/VI/5EzHv0O3rv0ksve/e9PyfX+PrifDUOr51LTXrJMYx6vdpvNqj2cX3jc4HxvsYF Lz9XAe0qaYLRwg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owqo0-0006IU-Gd for help-gnu-emacs@gnu.org; Sun, 20 Nov 2022 15:20:44 -0500 In-Reply-To: <2BB789D5-7DC8-4A5E-983E-A8595895A464@easesoftware.com> (message from Perry Smith on Sun, 20 Nov 2022 08:17:04 -0600) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141070 Archived-At: > From: Perry Smith > Date: Sun, 20 Nov 2022 08:17:04 -0600 > > I do a grep and get some results into the *grep* buffer. The hits happen to be in Org mode files if that matters. > > I do C-X ` and it takes 5 seconds to bring up the buffer. A next C-X ` are in the same file and are instant. But the one that has to open a different file again takes 4 to 5 seconds. > > This by itself doesn’t bother me that much. But I’m actually chasing weird problems and I’m wondering if this is connected to it or not. > > The weird problems are with lsp-mode using a package called lsp-tailwindcss. It is suppose to pop up completion suggestions. Every once in a VERY great while, it does. But usually it does not. I can pause and not enter any keys for a minute and no suggestions pop up. I have > > company-minimum-prefix-length set to 1 and company-idle-delay set to 0.0. If I set the idle time to 0.5 and prefix length to 2, the completions pop up but I have to sit for about 2 seconds before anything pops up. > > So… I’m theorizing that I’ve got something wasting time or is horribly inefficient but I have no idea how to track it down. > > I’m on one of Apple’s best / latest laptops so I believe I have plenty of horsepower and the CPU stats are close to 0. I'm not sure I understand what you are after, but Emacs has a built-in profiler, see profiler-start.