@seagle0128 关于刷新的问题,我有个好奇的地方。
不知道是不是由于 redisplay
的缘故,很多地方 doom-modeline 都是在深层次中被调用的。
比如这里:
CPU
- flyspell-post-command-hook 4180 19%
- flyspell-check-word-p 4076 18%
- sit-for 4075 18%
- redisplay 3697 16%
- redisplay_internal (C function) 450 2%
- eval 251 1%
+ doom-modeline-format--message 85 0%
+ doom-modeline-format--main 68 0%
+ doom-modeline-format--vcs 36 0%
+ doom-modeline-segment--buffer-position 12 0%
+ doom-modeline-segment--major-mode 7 0%
+ doom-modeline-segment--buffer-info 7 0%
+ doom-modeline-segment--buffer-info-simple 6 0%
+ doom-modeline-segment--buffer-encoding 6 0%
+ doom-modeline-segment--workspace-name 6 0%
+ doom-modeline-segment--matches 1 0%
doom-modeline-segment--process 1 0%
+ doom-modeline-segment--remote-host 1 0%
doom-modeline-segment--modals 1 0%
+ jit-lock-function 101 0%
+ golden-ratio 53 0%
+ eaf-monitor-configuration-change 22 0%
+ doom-modeline-refresh-bars 15 0%
+ #<compiled 0x632e407f6038500> 2 0%
+ mode-line-default-help-echo 2 0%
+ window--adjust-process-windows 1 0%
+ eaf-monitor-window-size-change 1 0%
+ read-event 243 1%
+ flyspell-word 97 0%
.....
......
- redisplay_internal (C function) 1297 5%
- eval 558 2%
+ doom-modeline-format--main 347 1%
+ doom-modeline-format--vcs 34 0%
+ doom-modeline-segment--buffer-position 30 0%
+ doom-modeline-segment--workspace-name 28 0%
+ doom-modeline-format--message 24 0%
+ doom-modeline-segment--buffer-info 22 0%
+ doom-modeline-segment--major-mode 18 0%
+ doom-modeline-segment--matches 10 0%
+ doom-modeline-segment--buffer-encoding 5 0%
+ doom-modeline-segment--remote-host 4 0%
+ doom-modeline-segment--modals 2 0%
doom-modeline-segment--vcs 1 0%
+ doom-modeline-segment--buffer-info-simple 1 0%
doom-modeline-segment--bar 1 0%
+ golden-ratio 464 2%
+ jit-lock-function 104 0%
+ eaf-monitor-configuration-change 56 0%
+ #<compiled 0x632e407f6038500> 41 0%
+ doom-modeline-refresh-bars 26 0%
+ company-posframe-window-change 15 0%
+ mode-line-default-help-echo 9 0%
+ window--adjust-process-windows 5 0%
+ which-key--hide-popup-on-frame-size-change 4 0%
+ git-gutter+-show-gutter 3 0%
+ eaf-monitor-window-size-change 3 0%
+ desktop-auto-save-set-timer 1 0%
+ window--resize-root-window-vertically 1 0%
Memory
- redisplay_internal (C function) 31,412,027,697 41%
- golden-ratio 30,175,102,280 39%
- golden-ratio--resize-window 18,209,449,900 24%
- enlarge-window 18,209,426,668 24%
+ window-resize 18,209,422,420 24%
+ window--resizable-p 1,056 0%
+ #<compiled 0xb96856203c4fe> 5,280 0%
+ window-resizable-p 5,280 0%
+ balance-windows 11,953,913,278 15%
+ run-hooks 6,276,155 0%
+ recenter 2,071,091 0%
+ golden-ratio--dimensions 411,736 0%
- git-gutter+-show-gutter 1,167,682,835 1%
git-gutter+-set-window-margin 1,167,682,835 1%
- eval 38,550,116 0%
+ doom-modeline-format--main 11,276,312 0%
+ doom-modeline-segment--workspace-name 6,410,664 0%
doom-modeline-segment--buffer-encoding 2,755,388 0%
+ doom-modeline-segment--buffer-info 2,667,246 0%
+ doom-modeline-segment--major-mode 2,030,696 0%
+ doom-modeline-segment--buffer-position 1,937,504 0%
+ doom-modeline-segment--matches 1,556,430 0%
+ doom-modeline-format--vcs 1,220,892 0%
+ doom-modeline-segment--remote-host 847,294 0%
+ doom-modeline-format--message 672,564 0%
+ doom-modeline-segment--vcs 296,584 0%
doom-modeline-segment--modals 173,616 0%
doom-modeline-segment--debug 120,504 0%
doom-modeline-segment--checker 119,768 0%
+ doom-modeline-segment--buffer-info-simple 115,384 0%
doom-modeline-segment--input-method 96,096 0%
+ doom-modeline-segment--process 48,992 0%
+ doom-modeline-format--org-src 29,308 0%
+ let* 14,584 0%
doom-modeline-segment--selection-info 13,471 0%
if 12,312 0%
+ jit-lock-function 18,404,413 0%
+ eaf-monitor-configuration-change 6,873,173 0%
- doom-modeline-refresh-bars 2,461,756 0%
- doom-modeline--make-xpm 1,202,148 0%
apply 183,192 0%
- create-image 96,136 0%
- apply 70,792 0%
#<compiled 0x64351dd117934ba> 29,608 0%
- create-image-with-background-color 25,344 0%
+ let* 25,344 0%
doom-modeline--font-height 8 0%
+ company-posframe-window-change 1,508,536 0%
这里面是一个什么关系呢?