From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.help Subject: Re: How to debug high CPU usage -> hang Date: Thu, 12 Jan 2023 11:36:38 +0100 Message-ID: <874jsw82fd.fsf@ledu-giraud.fr> References: <831qo2o1p2.fsf@gnu.org> <83v8lckxv8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5142"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 12 11:48:29 2023 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 1pFv8G-0000uL-Om for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Jan 2023 11:48:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFuxA-0001CQ-I0; Thu, 12 Jan 2023 05:37:00 -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 1pFuww-0000ys-BX for help-gnu-emacs@gnu.org; Thu, 12 Jan 2023 05:36:46 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFuwt-0002sS-9P; Thu, 12 Jan 2023 05:36:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=micdXBrcPIwLfIoQ 30BoxynXemMGNLBf2eHWbkeNlpk=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=1H0Xdv+NzA2Ryn09tZJ3ZB5MUzyfpfN/oaDuYt gpzsey2PDS2g5Ad3DL2fWCTaC0vDHkyTe/lZAvLm3x+bV/TcSh3vSvaqCL4EYk0sTlYj7X L3ADjQ8dEvuTIfAiuiFTBKKqTb9oZV1Mg0BkC+njIAwHP/Gztooio87m+2D0OddB83Y4C7 ZM1sOcycONUB/7JTrfDPb9R+ROvoXRzwRhe9WmB56MuXdHDXa/vHViBDrnkFfQH79IAosq ZBn/yroxR86WLW6ukwjOrTFbbIAbJHj6AF2dLD7FqYfG6XJtyj4fIlTvHGC2ikSova7AQA Uh8JsFNURAHSdzQCJkAHrjmA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 8b33d333 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 12 Jan 2023 11:36:39 +0100 (CET) In-Reply-To: <83v8lckxv8.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Jan 2023 09:36:43 +0200") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:142213 Archived-At: Eli Zaretskii writes: [...] >> Attaching a debugger to the lisp major mode, or building emacs from >> source? > > Attaching a debugger (GDB) to Emacs when its CPU usage jumps. This > requires Emacs built with debug info, or installing the separate debug > info from your distro. And if you get the Emacs source tree, you should read etc/DEBUG that contains most of the informations you need to do this. -- Manuel Giraud