Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vimagit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jreybert
vimagit
Commits
c6a2044a
Commit
c6a2044a
authored
9 years ago
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
autoload/magit/utils.vim: add magit#utils#start_profile function
parent
73a5fbcb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autoload/magit/utils.vim
+10
-0
10 additions, 0 deletions
autoload/magit/utils.vim
with
10 additions
and
0 deletions
autoload/magit/utils.vim
+
10
−
0
View file @
c6a2044a
...
@@ -173,3 +173,13 @@ endfunction
...
@@ -173,3 +173,13 @@ endfunction
function
!
magit#utils#
bufnr
()
function
!
magit#utils#
bufnr
()
return
s:bufnr
return
s:bufnr
endfunction
endfunction
function
!
magit#utils#start_profile
(...)
let
prof_file
=
(
a:0
==
1
)
?
a:1
:
"/tmp/vimagit.log"
execute
"profile start "
.
prof_file
.
" | profile pause"
profile
!
file
*
/plugin/
magit
.
vim
profile
!
file
*
/autoload/
magit/*
profile
!
file
*
/common/
magit_common
.
vim
profile
!
file
*
/syntax/
magit
.
vim
profile
continue
endfunction
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment