Questions tagged [profiler]

23 questions
13
votes
2 answers

How do I speed up org-mode agenda generation

It takes several seconds for Emacs org-mode to generate my agenda. How can I make it faster? I'm already using archive files, and I have less than 30 .org files, all of them reasonably short. Partial profiler output of the org-agenda command: + ...…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
11
votes
2 answers

Profile a command by wall time

The profiler-start command has options for cpu, mem, and cpu+mem. Is there a way to profile a command by elapsed time?
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
8
votes
4 answers

Speed up Emacs start-up time

I have seen this thread but my problem is an order of magnitude larger. Also, a newbie, I did not understand much of what was being discussed there. So, this new question. I am running Emacs 25.2.2 on Kubuntu 17.10 on a low-range laptop computer…
deshmukh
  • 1,852
  • 13
  • 29
6
votes
1 answer

Make profiler report columns wider

I am debugging a very deep call stack. Unfortunately profiler reports (produced with M-x profiler-report) have a fixed width that obscures critical information when the stack gets deep. Is there any way I can give myself some extra room?
PythonNut
  • 10,243
  • 2
  • 29
  • 75
5
votes
1 answer

Is there an efficient way to tell which parts of my startup of Emacs take the longest to load?

I have been trying to make the start-up times better. Almost all of my init.el is broken into use-package declarations like this: (use-package x ...) (use-package y ...) (use-package z ...) I want to start optimising those parts of the init.el that…
scribe
  • 930
  • 4
  • 15
5
votes
1 answer

How to better debug Emacs CPU management?

I can't remember since when exactly, but Emacs is getting slow with basic operations (moving cursor around). It's not exactly slow, but feeling laggy. Before I try and halven my configuration files step by step as suggested in many places, I was…
Mathieu Marques
  • 1,953
  • 1
  • 13
  • 30
4
votes
1 answer

profile-report doesn't show any report data

I used M-x profiler-start RET RET then after a few other operations I did M-x profiler-stop. Then M-x profiler-report. It doesn't show any profile data. I am using OSX. Where is profile data supposed to be saved? and what is the file name supposed…
user40129
  • 141
  • 1
4
votes
0 answers

Extremely slow startup on Windows - How to debug?

I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s). (The server works, but this is so slow I cannot debug some other problems that I am trying to fix) My system is windows 10 on a corporate network, which I…
guest
  • 41
  • 1
  • 4
4
votes
1 answer

`profiler-report` output is truncated horizontally?

I'm having some performance problems with the latest version of magit, which I'm trying to profile to find the reason. I'm doing the following: M-x profiler-start M-x magit-status M-x profiler-report Unfortunately the report is truncated…
rneatherway
  • 483
  • 3
  • 11
3
votes
1 answer

Emacs is slow, intermittently hangs, freezes when I "come back to it", profiler says `savehist`

When I use Emacs it seems fine mostly, but since recently every couple of minutes it becomes extremely slow for a while. When I change focus to another app, and come back after a while, it is invariably unresponsive for >10 seconds. Emacs is also…
hraban
  • 211
  • 1
  • 9
3
votes
1 answer

Profiling simulated interactive editing

Is there a way to profile or time code that simulates interactive editing? The gist of what I want to do is that I have some code that runs during font-lock, and sometimes it makes editing sluggish. What I would like is a way to run a test that…
John Kitchin
  • 11,555
  • 1
  • 19
  • 41
3
votes
0 answers

profiler-report seems to be missing data

I'm trying to profile the usually excellent find-things-fast package to figure out why it's slow in my project. I started profiling with profiler-start, executed the command that's slow (ftf-find-file), then immediately ran profiler-report. This…
zeptonaut
  • 131
  • 2
3
votes
0 answers

Profiling org-mode init file

My initialization file is organized in org-mode with src snippets. Is there a way I can profile it to see which snippets take the most time to evaluate? When my initialization file was in Elisp, I was able to profile it with ProfileDotEmacs, but…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
1
vote
1 answer

Profiler/Benchmark Macro Like the `Time` in Common Lisp

To profile Elisp code, I tried benchmark.el and some profiler--prefixed built-in functions. But all their reports are either non-human-readable or inadequate. I think the ideal outcome is like what the time macro does in Common Lisp: CL-USER>…
shynur
  • 4,065
  • 1
  • 3
  • 23
1
vote
1 answer

Identifying functions that trigger timers and cause redisplays when profiling Emacs execution

I'm experiencing serious performance degradation whenever I'm in dart-mode and LSP is enabled. This is a strange one because Emacs I don't experience any performance degradation on a fresh instance but within half-hour or so of editing Dart source…
migdsb
  • 113
  • 5
1
2