fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Floppy 💾

TIL about :emacs:

If Emacs is slow to respond, you can analyse runtime behaviour with the built-in profiler.

1. Start the profiler (`M-x profiler-start`) for CPU usage.
2. Do a bit of representative work for a short while.
3. Stop the profiler (`M-x profiler-report`).
4. Check the report buffer for function calls that are high in relative CPU time.

Documentation:

gnu.org/software/emacs/manual/

www.gnu.orgProfiling (GNU Emacs Lisp Reference Manual)Profiling (GNU Emacs Lisp Reference Manual)

This already saved me nerves. It turned out that some minor mode I had configured struggled with opening and navigating large text files.

Wondering how I could debug this took much longer than using the profiler. The profiler helped me solve the problem in less than five minutes, including learning that the profiler exists and how to use it.

Apart from that, here we go again: Emacs, camouflaged as text editor, ships a profiler by default. Of course it would.

@floppy@fosstodon.org oh! This is good. I am going to find why markdown mode on my Emacs struggles