4

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 horizontally, so that I'm still at over 80% of CPU time when the function names are just replaced with ....

How should I work around this?

enter image description here

4

In profiler.el are two variables defined:

(defvar profiler-report-cpu-line-format
  '((50 left)
    (24 right ((19 right)
           (5 right)))))

(defvar profiler-report-memory-line-format
  '((55 left)
    (19 right ((14 right profiler-format-number)
           (5 right)))))

Those seem to define the formatting of the report table.

You might want to adjust them via setq. Customs do not seem to exist.

  • I increased the first element of the list and it worked well. Thanks! – rneatherway Nov 30 '15 at 12:46
  • Example: (setq profiler-report-cpu-line-format '((80 left) (24 right ((19 right) (5 right))))) – rneatherway Nov 30 '15 at 12:46
  • Please open a bug report; this should be auto-resizing, or at worst it should be customizable. – Clément Nov 2 '16 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.