comparison src/testdir/test_profile.vim @ 32160:98774a275d6d v9.0.1411

patch 9.0.1411: accuracy of profiling is not optimal Commit: https://github.com/vim/vim/commit/076de79ad832558267b3ff903c048df2f4c1a5d6 Author: Ernie Rael <errael@raelity.com> Date: Thu Mar 16 21:43:15 2023 +0000 patch 9.0.1411: accuracy of profiling is not optimal Problem: Accuracy of profiling is not optimal. Solution: Use CLOCK_MONOTONIC if possible. (Ernie Rael, closes https://github.com/vim/vim/issues/12129)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Mar 2023 22:45:04 +0100
parents c8612da7564c
children
comparison
equal deleted inserted replaced
32159:49fdfec64a4c 32160:98774a275d6d
4 CheckFeature profile 4 CheckFeature profile
5 5
6 source shared.vim 6 source shared.vim
7 source screendump.vim 7 source screendump.vim
8 8
9 let s:header = 'count total (s) self (s)' 9 if has('prof_nsec')
10 let s:header_func = 'count total (s) self (s) function' 10 let s:header = 'count total (s) self (s)'
11 let s:header_func = 'count total (s) self (s) function'
12 else
13 let s:header = 'count total (s) self (s)'
14 let s:header_func = 'count total (s) self (s) function'
15 endif
11 16
12 func Test_profile_func() 17 func Test_profile_func()
13 call RunProfileFunc('func', 'let', 'let') 18 call RunProfileFunc('func', 'let', 'let')
14 call RunProfileFunc('def', 'var', '') 19 call RunProfileFunc('def', 'var', '')
15 endfunc 20 endfunc