Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 emacs 中加载了很多模块。对于某些文件,事情变得非常缓慢。我想找出哪个模块是罪魁祸首。我怎么能在emacs中调试这个?是否有任何调试设置/配置参数可以帮助我在活动缓冲区中移动/编辑时记录 emacs 正在执行的活动?
您可能会发现做一个有用的 M-x profiler-start. 询问时使用模式 cpu。过了一会儿,输入M-x profile-report并查看结果。浏览它们很容易。
除此之外,你总是有“二进制搜索”的廉价方法来评论你的 init 文件的一部分,以找出谁在减慢速度:-)