[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to profile elisp?
From: |
Eli Zaretskii |
Subject: |
Re: Is it possible to profile elisp? |
Date: |
Sun, 20 Nov 2022 22:20:55 +0200 |
> From: Perry Smith <pedz@easesoftware.com>
> 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.