-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: parse "Source:" from profile output with functions
Ref: vim/vim#3329
- Loading branch information
Showing
7 changed files
with
146 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
SCRIPT tests/test_plugin/duplicate_s_function.vim | ||
Sourced 1 time | ||
Total time: 0.001189 | ||
Self time: 0.000583 | ||
|
||
count total (s) self (s) | ||
" https://github.com/vim/vim/issues/3286 | ||
1 0.000052 function! s:function(name) abort | ||
echom a:name | ||
endfunction | ||
|
||
1 0.000367 0.000149 call s:function('name') | ||
1 0.000691 0.000303 call test_plugin#function#function('name') | ||
|
||
SCRIPT tests/test_plugin/autoload/test_plugin/function.vim | ||
Sourced 1 time | ||
Total time: 0.000099 | ||
Self time: 0.000099 | ||
|
||
count total (s) self (s) | ||
1 0.000036 function! s:function(name) abort | ||
echom a:name | ||
endfunction | ||
|
||
1 0.000005 function! test_plugin#function#function(name) abort | ||
call s:function(a:name) | ||
endfunction | ||
|
||
FUNCTION test_plugin#function#function() | ||
Called 1 time | ||
Total time: 0.000201 | ||
Self time: 0.000036 | ||
Source: tests/test_plugin/autoload/test_plugin/function.vim:5 | ||
|
||
count total (s) self (s) | ||
1 0.000198 0.000033 call s:function(a:name) | ||
|
||
FUNCTION <SNR>2_function() | ||
Called 1 time | ||
Total time: 0.000217 | ||
Self time: 0.000217 | ||
Source: tests/test_plugin/duplicate_s_function.vim:2 | ||
|
||
count total (s) self (s) | ||
1 0.000200 echom a:name | ||
|
||
FUNCTION <SNR>3_function() | ||
Called 1 time | ||
Total time: 0.000165 | ||
Self time: 0.000165 | ||
Source: tests/test_plugin/autoload/test_plugin/function.vim:1 | ||
|
||
count total (s) self (s) | ||
1 0.000163 echom a:name | ||
|
||
FUNCTIONS SORTED ON TOTAL TIME | ||
count total (s) self (s) function | ||
1 0.000217 <SNR>2_function() | ||
1 0.000201 0.000036 test_plugin#function#function() | ||
1 0.000165 <SNR>3_function() | ||
|
||
FUNCTIONS SORTED ON SELF TIME | ||
count total (s) self (s) function | ||
1 0.000217 <SNR>2_function() | ||
1 0.000165 <SNR>3_function() | ||
1 0.000201 0.000036 test_plugin#function#function() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function! s:function(name) abort | ||
echom a:name | ||
endfunction | ||
|
||
function! test_plugin#function#function(name) abort | ||
call s:function(a:name) | ||
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
" https://github.com/vim/vim/issues/3286 | ||
function! s:function(name) abort | ||
echom a:name | ||
endfunction | ||
|
||
call s:function('name') | ||
call test_plugin#function#function('name') |