From c988155357ee2ff5f587984cc5f1e135894a7812 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 14 Aug 2018 21:17:10 +0200 Subject: [PATCH] fixup! WIP: parse "Source:" from profile output with functions --- tests/fixtures/duplicate_s_function.profile | 54 ++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/tests/fixtures/duplicate_s_function.profile b/tests/fixtures/duplicate_s_function.profile index 9c2a3d69..ec3f8aa3 100644 --- a/tests/fixtures/duplicate_s_function.profile +++ b/tests/fixtures/duplicate_s_function.profile @@ -1,67 +1,67 @@ SCRIPT tests/test_plugin/duplicate_s_function.vim Sourced 1 time -Total time: 0.001189 - Self time: 0.000583 +Total time: 0.000600 + Self time: 0.000278 count total (s) self (s) " https://github.com/vim/vim/issues/3286 - 1 0.000052 function! s:function(name) abort + 1 0.000028 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') + 1 0.000132 0.000049 call s:function('name') + 1 0.000390 0.000151 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 +Total time: 0.000054 + Self time: 0.000054 count total (s) self (s) - 1 0.000036 function! s:function(name) abort + 1 0.000016 function! s:function(name) abort echom a:name endfunction - 1 0.000005 function! test_plugin#function#function(name) abort + 1 0.000003 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 +Called 1 time +Total time: 0.000117 + Self time: 0.000016 count total (s) self (s) - 1 0.000198 0.000033 call s:function(a:name) + 1 0.000116 0.000015 call s:function(a:name) FUNCTION 2_function() -Called 1 time -Total time: 0.000217 - Self time: 0.000217 Source: tests/test_plugin/duplicate_s_function.vim:2 +Called 1 time +Total time: 0.000082 + Self time: 0.000082 count total (s) self (s) - 1 0.000200 echom a:name + 1 0.000077 echom a:name FUNCTION 3_function() -Called 1 time -Total time: 0.000165 - Self time: 0.000165 Source: tests/test_plugin/autoload/test_plugin/function.vim:1 +Called 1 time +Total time: 0.000101 + Self time: 0.000101 count total (s) self (s) - 1 0.000163 echom a:name + 1 0.000098 echom a:name FUNCTIONS SORTED ON TOTAL TIME count total (s) self (s) function - 1 0.000217 2_function() - 1 0.000201 0.000036 test_plugin#function#function() - 1 0.000165 3_function() + 1 0.000117 0.000016 test_plugin#function#function() + 1 0.000101 3_function() + 1 0.000082 2_function() FUNCTIONS SORTED ON SELF TIME count total (s) self (s) function - 1 0.000217 2_function() - 1 0.000165 3_function() - 1 0.000201 0.000036 test_plugin#function#function() + 1 0.000101 3_function() + 1 0.000082 2_function() + 1 0.000117 0.000016 test_plugin#function#function()