[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is it possible to profile elisp?
From: |
Perry Smith |
Subject: |
Is it possible to profile elisp? |
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.
Thank you for your time,
Perry Smith
p.s. I am subscribed to this list but I do not receive any emails so please CC
me on your replies. I will also track down this in the archive in a few days.
signature.asc
Description: Message signed with OpenPGP
- Is it possible to profile elisp?,
Perry Smith <=