Skip to content

Instantly share code, notes, and snippets.

@timlod
Created January 13, 2021 10:05
Show Gist options
  • Save timlod/6111d2f96357f55b1d2cc1976ac9740f to your computer and use it in GitHub Desktop.
Save timlod/6111d2f96357f55b1d2cc1976ac9740f to your computer and use it in GitHub Desktop.
Tree-sitter profile report
- timer-event-handler 173 58%
- apply 173 58%
- jupyter-event-handler 170 57%
- apply 170 57%
- #<compiled 0x1576764d62a1> 170 57%
- apply 170 57%
- #<compiled 0x157676cd3251> 170 57%
- jupyter-handle-message 170 57%
- apply 170 57%
- #<compiled 0x157676cdaffd> 170 57%
- #<compiled 0x157677e56621> 169 56%
- jupyter--run-handler-maybe 169 56%
- jupyter-handle-message 169 56%
- apply 169 56%
- #<compiled 0x157676cdb771> 126 42%
- jupyter-handle-is-complete-reply 126 42%
- apply 126 42%
- #<compiled 0x157676d2e95d> 126 42%
- jupyter-send-execute-request 126 42%
- apply 126 42%
- #<compiled 0x1576764e576d> 126 42%
- apply 126 42%
- #<compiled 0x157676d297e5> 126 42%
- jupyter-repl-finalize-cell 67 22%
- put-text-property 27 9%
- tree-sitter--after-change 27 9%
tree-sitter--do-parse 26 8%
- tsc--point-from-position 1 0%
line-number-at-pos 1 0%
- add-text-properties 14 4%
- tree-sitter--after-change 14 4%
tree-sitter--do-parse 14 4%
- jupyter-repl-newline 13 4%
- tree-sitter--after-change 13 4%
tree-sitter--do-parse 13 4%
- remove-text-properties 13 4%
- tree-sitter--after-change 13 4%
tree-sitter--do-parse 13 4%
- jupyter-repl-insert-prompt 40 13%
- tree-sitter--after-change 27 9%
tree-sitter--do-parse 26 8%
- tsc--point-from-position 1 0%
line-number-at-pos 1 0%
- jupyter-repl--make-prompt 13 4%
- add-text-properties 13 4%
- tree-sitter--after-change 13 4%
tree-sitter--do-parse 13 4%
- jupyter-repl-truncate-buffer 19 6%
- tree-sitter--after-change 19 6%
- tree-sitter--do-parse 19 6%
- run-hook-with-args 1 0%
tree-sitter-hl--invalidate 1 0%
- #<compiled 0x157676cedbf1> 43 14%
- jupyter-handle-execute-result 42 14%
- apply 42 14%
- #<compiled 0x157676bc18e9> 42 14%
- apply 42 14%
- #<compiled 0x157676d2a405> 42 14%
- jupyter-repl-insert-prompt 40 13%
- tree-sitter--after-change 27 9%
- tree-sitter--do-parse 27 9%
- run-hook-with-args 1 0%
tree-sitter-hl--invalidate 1 0%
- jupyter-repl--make-prompt 13 4%
- add-text-properties 13 4%
- tree-sitter--after-change 13 4%
tree-sitter--do-parse 13 4%
- jupyter-insert 1 0%
- apply 1 0%
- #<compiled 0x157676bae839> 1 0%
- apply 1 0%
- #<compiled 0x157676bae871> 1 0%
+ apply 1 0%
- jupyter-message-content 1 0%
- jupyter--decode 1 0%
- jupyter--decode 1 0%
- json-read-from-string 1 0%
- json-read 1 0%
- json-read-object 1 0%
- json-read 1 0%
- json-read-object 1 0%
json-read 1 0%
- #<compiled 0x157676cdaf49> 1 0%
- jupyter-message-content 1 0%
- jupyter--decode 1 0%
jupyter--decode 1 0%
- show-paren-function 1 0%
- apply 1 0%
- ad-Advice-show-paren-function 1 0%
- #<compiled 0x15767732dc31> 1 0%
- show-paren--default 1 0%
- show-paren--locate-near-paren 1 0%
- back-to-indentation 1 0%
- skip-syntax-forward 1 0%
- internal--syntax-propertize 1 0%
syntax-propertize 1 0%
+ #<compiled 0x1fe07cb6925f> 1 0%
- beacon--dec 1 0%
beacon--ov-put-after-string 1 0%
- command-execute 62 20%
- call-interactively 62 20%
- funcall-interactively 62 20%
- counsel-M-x 39 13%
- ivy-read 36 12%
- read-from-minibuffer 24 8%
- ivy--queue-exhibit 15 5%
- ivy--exhibit 15 5%
- ivy--update-minibuffer 11 3%
- ivy--filter 8 2%
- ivy--re-filter 8 2%
- cl-remove 8 2%
- apply 8 2%
- cl-delete 5 1%
#<compiled 0x157679efdfed> 5 1%
- ivy--format 3 1%
- mapcar 3 1%
- ivy-rich--counsel-M-x-transformer 3 1%
- ivy-rich-format 3 1%
- mapconcat 3 1%
- #<compiled 0x157679efe015> 3 1%
- ivy-rich-format-column 3 1%
ivy-rich-counsel-function-docstring 3 1%
- ivy--insert-minibuffer 3 1%
ivy--resize-minibuffer-to-fit 3 1%
- ivy-set-text 1 0%
- ivy--regex-plus 1 0%
ivy--regex 1 0%
- which-key--hide-popup 1 0%
- which-key--hide-buffer-side-window 1 0%
- quit-windows-on 1 0%
- unrecord-window-buffer 1 0%
assq-delete-all 1 0%
- ivy--reset-state 3 1%
- all-completions 2 0%
#<compiled 0x157677296b0d> 1 0%
- ivy-call 1 0%
- counsel-M-x-action 1 0%
- command-execute 1 0%
- call-interactively 1 0%
- funcall-interactively 1 0%
profiler-stop 1 0%
counsel--M-x-externs 3 1%
- jupyter-repl-history-previous 23 7%
- jupyter-repl-replace-cell-code 23 7%
- insert-and-inherit 23 7%
- tree-sitter--after-change 23 7%
tree-sitter--do-parse 23 7%
- ... 60 20%
- #<compiled 0x15767799d955> 60 20%
- jupyter-insert 60 20%
- apply 60 20%
- #<compiled 0x157676bae839> 60 20%
- apply 60 20%
- #<compiled 0x157676bae871> 60 20%
- apply 60 20%
- #<compiled 0x157676ba5ded> 60 20%
- apply 60 20%
- #<compiled 0x157676ba620d> 60 20%
- apply 60 20%
- #<compiled 0x157676ba31e5> 60 20%
- apply 60 20%
- #<compiled 0x157676ba3521> 60 20%
- apply 60 20%
- #<compiled 0x157676ba35dd> 60 20%
- apply 57 19%
- #<compiled 0x157676ba07dd> 57 19%
- apply 57 19%
- #<compiled 0x157676ba0b91> 57 19%
- apply 57 19%
- #<compiled 0x157676d1fc21> 57 19%
- #<compiled 0x15767799da05> 43 14%
- apply 43 14%
- #<compiled 0x157676c9fda1> 43 14%
- jupyter-insert-ansi-coded-text 29 9%
- jupyter-fixup-font-lock-properties 15 5%
- put-text-property 15 5%
- tree-sitter--after-change 15 5%
- tree-sitter--do-parse 15 5%
- run-hook-with-args 1 0%
tree-sitter-hl--invalidate 1 0%
- tree-sitter--after-change 14 4%
tree-sitter--do-parse 14 4%
- tree-sitter--after-change 14 4%
tree-sitter--do-parse 14 4%
- add-text-properties 14 4%
- tree-sitter--after-change 14 4%
tree-sitter--do-parse 14 4%
Automatic GC 0 0%
- redisplay_internal (C function) 1 0%
- jit-lock-function 1 0%
+ jit-lock-fontify-now 1 0%
+ sp--save-pre-command-state 1 0%
Same from write-profile:
[profiler-profile "24.3" cpu #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ([nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 37 [tree-sitter--do-parse tree-sitter--after-change insert-and-inherit jupyter-repl-replace-cell-code jupyter-repl-history-previous funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 23 [tree-sitter--do-parse tree-sitter--after-change jupyter-repl-truncate-buffer "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message jupyter--run-handler-maybe "#<compiled 0x157677e56621>"] 18 [tree-sitter-hl--invalidate run-hook-with-args tree-sitter--do-parse tree-sitter--after-change jupyter-repl-truncate-buffer "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message] 1 [tree-sitter--do-parse tree-sitter--after-change jupyter-repl-newline jupyter-repl-finalize-cell "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message jupyter--run-handler-maybe] 13 [line-number-at-pos tsc--point-from-position tree-sitter--after-change put-text-property jupyter-repl-finalize-cell "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message] 1 [tree-sitter--do-parse tree-sitter--after-change put-text-property jupyter-repl-finalize-cell "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message jupyter--run-handler-maybe] 26 [tree-sitter--do-parse tree-sitter--after-change remove-text-properties jupyter-repl-finalize-cell "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message jupyter--run-handler-maybe] 13 [tree-sitter--do-parse tree-sitter--after-change add-text-properties jupyter-repl-finalize-cell "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message jupyter--run-handler-maybe] 14 [tree-sitter--do-parse tree-sitter--after-change jupyter-repl-insert-prompt "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message jupyter--run-handler-maybe "#<compiled 0x157677e56621>"] 26 [tree-sitter--do-parse tree-sitter--after-change add-text-properties jupyter-repl--make-prompt jupyter-repl-insert-prompt "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message] 13 [line-number-at-pos tsc--point-from-position tree-sitter--after-change jupyter-repl-insert-prompt "#<compiled 0x157676d297e5>" apply "#<compiled 0x1576764e576d>" apply jupyter-send-execute-request "#<compiled 0x157676d2e95d>" apply jupyter-handle-is-complete-reply "#<compiled 0x157676cdb771>" apply jupyter-handle-message jupyter--run-handler-maybe] 1 [jupyter--decode jupyter--decode jupyter-message-content "#<compiled 0x157676cdaf49>" "#<compiled 0x157676cdaffd>" apply jupyter-handle-message "#<compiled 0x157676cd3251>" apply "#<compiled 0x1576764d62a1>" apply jupyter-event-handler apply timer-event-handler nil nil] 1 [json-read json-read-object json-read json-read-object json-read json-read-from-string jupyter--decode jupyter--decode jupyter-message-content "#<compiled 0x157676cedbf1>" apply jupyter-handle-message jupyter--run-handler-maybe "#<compiled 0x157679c3b881>" "#<compiled 0x157676cdaffd>" apply] 1 ["#<compiled 0x157676d2a405>" apply "#<compiled 0x157676bc18e9>" apply jupyter-handle-execute-result "#<compiled 0x157676cedbf1>" apply jupyter-handle-message jupyter--run-handler-maybe "#<compiled 0x157679c3b881>" "#<compiled 0x157676cdaffd>" apply jupyter-handle-message "#<compiled 0x157676cd3251>" apply "#<compiled 0x1576764d62a1>"] 1 [tree-sitter--do-parse tree-sitter--after-change jupyter-repl-insert-prompt "#<compiled 0x157676d2a405>" apply "#<compiled 0x157676bc18e9>" apply jupyter-handle-execute-result "#<compiled 0x157676cedbf1>" apply jupyter-handle-message jupyter--run-handler-maybe "#<compiled 0x157679c3b881>" "#<compiled 0x157676cdaffd>" apply jupyter-handle-message] 26 [tree-sitter--do-parse tree-sitter--after-change add-text-properties jupyter-repl--make-prompt jupyter-repl-insert-prompt "#<compiled 0x157676d2a405>" apply "#<compiled 0x157676bc18e9>" apply jupyter-handle-execute-result "#<compiled 0x157676cedbf1>" apply jupyter-handle-message jupyter--run-handler-maybe "#<compiled 0x157679c3b881>" "#<compiled 0x157676cdaffd>"] 13 [tree-sitter-hl--invalidate run-hook-with-args tree-sitter--do-parse tree-sitter--after-change jupyter-repl-insert-prompt "#<compiled 0x157676d2a405>" apply "#<compiled 0x157676bc18e9>" apply jupyter-handle-execute-result "#<compiled 0x157676cedbf1>" apply jupyter-handle-message jupyter--run-handler-maybe "#<compiled 0x157679c3b881>" "#<compiled 0x157676cdaffd>"] 1 ["#<compiled 0x157676ba35dd>" apply "#<compiled 0x157676ba3521>" apply "#<compiled 0x157676ba31e5>" apply "#<compiled 0x157676ba620d>" apply "#<compiled 0x157676ba5ded>" apply "#<compiled 0x157676bae871>" apply "#<compiled 0x157676bae839>" apply jupyter-insert "#<compiled 0x157676d2a405>"] 1 ["#<compiled 0x157676ba35dd>" apply "#<compiled 0x157676ba3521>" apply "#<compiled 0x157676ba31e5>" apply "#<compiled 0x157676ba620d>" apply "#<compiled 0x157676ba5ded>" apply "#<compiled 0x157676bae871>" apply "#<compiled 0x157676bae839>" apply jupyter-insert "#<compiled 0x15767799d955>"] 3 [tree-sitter--do-parse tree-sitter--after-change jupyter-insert-ansi-coded-text "#<compiled 0x157676c9fda1>" apply "#<compiled 0x15767799da05>" "#<compiled 0x157676d1fc21>" apply "#<compiled 0x157676ba0b91>" apply "#<compiled 0x157676ba07dd>" apply "#<compiled 0x157676ba35dd>" apply "#<compiled 0x157676ba3521>" apply] 14 [tree-sitter--do-parse tree-sitter--after-change put-text-property jupyter-fixup-font-lock-properties jupyter-insert-ansi-coded-text "#<compiled 0x157676c9fda1>" apply "#<compiled 0x15767799da05>" "#<compiled 0x157676d1fc21>" apply "#<compiled 0x157676ba0b91>" apply "#<compiled 0x157676ba07dd>" apply "#<compiled 0x157676ba35dd>" apply] 14 [tree-sitter-hl--invalidate run-hook-with-args tree-sitter--do-parse tree-sitter--after-change put-text-property jupyter-fixup-font-lock-properties jupyter-insert-ansi-coded-text "#<compiled 0x157676c9fda1>" apply "#<compiled 0x15767799da05>" "#<compiled 0x157676d1fc21>" apply "#<compiled 0x157676ba0b91>" apply "#<compiled 0x157676ba07dd>" apply] 1 [tree-sitter--do-parse tree-sitter--after-change "#<compiled 0x157676c9fda1>" apply "#<compiled 0x15767799da05>" "#<compiled 0x157676d1fc21>" apply "#<compiled 0x157676ba0b91>" apply "#<compiled 0x157676ba07dd>" apply "#<compiled 0x157676ba35dd>" apply "#<compiled 0x157676ba3521>" apply "#<compiled 0x157676ba31e5>"] 14 [tree-sitter--do-parse tree-sitter--after-change add-text-properties "#<compiled 0x157676d1fc21>" apply "#<compiled 0x157676ba0b91>" apply "#<compiled 0x157676ba07dd>" apply "#<compiled 0x157676ba35dd>" apply "#<compiled 0x157676ba3521>" apply "#<compiled 0x157676ba31e5>" apply "#<compiled 0x157676ba620d>"] 14 [syntax-propertize internal--syntax-propertize skip-syntax-forward back-to-indentation show-paren--locate-near-paren show-paren--default "#<compiled 0x15767732dc31>" ad-Advice-show-paren-function apply show-paren-function apply timer-event-handler nil nil nil nil] 1 [jit-lock-context-fontify "#<compiled 0x1fe07cb6925f>" apply timer-event-handler nil nil nil nil nil nil nil nil nil nil nil nil] 1 [facep tree-sitter-hl--highlight-capture mapc tree-sitter-hl--highlight-region apply "#<compiled 0x157678c94415>" font-lock-fontify-region "#<compiled 0x15767a734791>" run-hook-wrapped jit-lock--run-functions jit-lock-fontify-now jit-lock-function redisplay_internal\ \(C\ function\) nil nil nil] 1 [beacon--ov-put-after-string beacon--dec apply timer-event-handler nil nil nil nil nil nil nil nil nil nil nil nil] 1 [syntax-ppss sp--syntax-ppss sp-point-in-string sp--save-pre-command-state nil nil nil nil nil nil nil nil nil nil nil nil] 1 [counsel--M-x-externs counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil] 3 ["#<compiled 0x157677296b0d>" all-completions ivy--reset-state ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 1 [all-completions ivy--reset-state ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 1 [ivy--reset-state ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil] 8 [read-from-minibuffer ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 8 ["#<compiled 0x157679efdfed>" cl-delete apply cl-remove ivy--re-filter ivy--filter ivy--update-minibuffer ivy--exhibit ivy--queue-exhibit read-from-minibuffer ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil] 5 [apply cl-remove ivy--re-filter ivy--filter ivy--update-minibuffer ivy--exhibit ivy--queue-exhibit read-from-minibuffer ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil] 3 [ivy-rich-counsel-function-docstring ivy-rich-format-column "#<compiled 0x157679efe015>" mapconcat ivy-rich-format ivy-rich--counsel-M-x-transformer mapcar ivy--format ivy--update-minibuffer ivy--exhibit ivy--queue-exhibit read-from-minibuffer ivy-read counsel-M-x funcall-interactively call-interactively] 3 [ivy--resize-minibuffer-to-fit ivy--insert-minibuffer ivy--exhibit ivy--queue-exhibit read-from-minibuffer ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 3 [ivy--regex ivy--regex-plus ivy-set-text ivy--exhibit ivy--queue-exhibit read-from-minibuffer ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil] 1 [assq-delete-all unrecord-window-buffer quit-windows-on which-key--hide-buffer-side-window which-key--hide-popup read-from-minibuffer ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil] 1 [profiler-stop funcall-interactively call-interactively command-execute counsel-M-x-action ivy-call ivy-read counsel-M-x funcall-interactively call-interactively command-execute nil nil nil nil nil] 1 [Automatic\ GC] 0)) (24574 50350 118453 304000) nil]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment