]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1842: Need more accurate profiling v9.0.1842
authorErnie Rael <errael@raelity.com>
Sat, 2 Sep 2023 13:09:18 +0000 (15:09 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 2 Sep 2023 13:09:18 +0000 (15:09 +0200)
commit21d3212361f687704acb52cad7c1b9228e7c83f0
tree7dc986cef84f517d531c9401eb60d72e67ed0abf
parent9d093fd05626aa19e5d9ff6d4b738a0f8f5deccb
patch 9.0.1842: Need more accurate profiling

Problem:  Need more accurate profiling
Solution: Improve profiling results

closes: #12192

Reduce overhead of checking if a function should be profiled,
by caching results of checking (which are done with regexp).

Cache uf_hash for uf_name in ufunc_T.

Cache cleared when regexps are changed.

Break at first match for has_profiling lookup.

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
src/debugger.c
src/profiler.c
src/proto/debugger.pro
src/scriptfile.c
src/structs.h
src/version.c
src/vim9class.c
src/vim9compile.c