gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

Debug slowness #125

Open baopham opened 7 years ago

baopham commented 7 years ago

How do I debug when an action takes longer than expected? Currently, when I do a D in diff mode, the CPU goes wild.

rbong commented 7 years ago

Usually, what I do is

:redir @a | 20verbose exec 'normal D' | redir END
:tabe
"ap

Hope that helps. Suggestions for built in debugging utilities is welcome.

baopham commented 7 years ago

Thank you for the snippet. I couldn't get much info 🤔 I think it could be the git command itself but don't think currently there's a way we can print out the git command being executed?

rbong commented 6 years ago

No, there isn't a way to currently do that unfortunately. Better error handling is planned.