Improve profiler popup integration

Following profiler links will open in different window; also displays
CPU/Memory reports side by side.
This commit is contained in:
Henrik Lissner
2019-03-13 19:20:37 -04:00
parent 1e1f725a55
commit 9b1b75f947
2 changed files with 11 additions and 1 deletions

View File

@ -316,6 +316,14 @@ instead of switch-to-buffer-*."
(set-popup-rule! "\\(^\\*Contents\\|'s annots\\*$\\)" :ignore t))
;; `profiler'
(defun doom*profiler-report-find-entry-in-other-window (orig-fn function)
(cl-letf (((symbol-function 'find-function)
(symbol-function 'find-function-other-window)))
(funcall orig-fn function)))
(advice-add #'profiler-report-find-entry :around #'doom*profiler-report-find-entry-in-other-window)
;; `wgrep'
(progn
;; close the popup after you're done with a wgrep buffer