[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to debug high CPU usage -> hang
From: |
Eli Zaretskii |
Subject: |
Re: How to debug high CPU usage -> hang |
Date: |
Thu, 12 Jan 2023 09:36:43 +0200 |
> From: Ken Goldman <kgoldman@us.ibm.com>
> Date: Wed, 11 Jan 2023 15:24:53 -0500
>
> On 1/10/2023 10:21 AM, Eli Zaretskii wrote:
> >> From: Ken Goldman <kgoldman@us.ibm.com>
> >> Date: Tue, 10 Jan 2023 09:58:58 -0500
> >>
> >> I'm editing in ReST mode, Windows 11, emacs 28.1.
> >>
> >> Occasionally, I want to jump (search, etc.) and the CPU usage jumps and
> >> emacs hangs. I suspect a font-lock issue.
> >>
> >> I fixed one by bisecting the text, then changing a table type. Now I
> >> have another.
> >>
> >> Is there a general way to debug?
> >
> > I can suggest profiling and/or attaching a debugger.
> >
>
> 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.