6

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.

enter image description here

Is there any way I can give myself some extra room?

  • 3
    These two variables look interesting, but I'm not sure they are what you need: profiler-report-cpu-line-format and profiler-report-memory-line-format The function profiler-format uses the words width and align, so that also looks interesting. – lawlist Jan 14 '15 at 5:50
2

setf the caar of profiler-report-cpu-line-format and profiler-report-memory-line-format to a larger width (default 50 and 55). It'll take effect on subsequent runs of profiler-report. (Thanks lawlist's comment for pointing out these variables.)

(setf (caar profiler-report-cpu-line-format) 80
      (caar profiler-report-memory-line-format) 80)
  • Not just subsetquent runs of profiler report, but also the next time you expand a call in the current profile report (at least in my experience). The columns will become misaligned, but at least you'll be able to see the full function definition. – Alexey Shiklomanov Nov 1 at 16:16

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.