有没有办法可以列出 Emacs 在一段时间内调用了哪些函数?

我的 spacemacs 现在有一个奇怪的问题: 我每次打开 el 文件的时候,它都会打开一个 ccls 服务器,然后询问我要不要 watch /usr/include 这个文件夹。 首先我很奇怪为什么会打开 ccls 服务器,其次为什么会要监控 /usr/include 这个文件夹我也不明白,现在基本是一头雾水的状态。

所以我想知道我在打开 el 文件的过程中,到底发生了什么。请问大家有什么好办法可以监控这段时间 Emacs 调用了哪些函数吗?

hook post-command-hook

我总会推荐

GitHub - lastquestion/explain-pause-mode: top, but for Emacs.

1 个赞

profiler-start

看起来不错,我尝试一下