Last active
August 29, 2015 14:05
-
-
Save yantze/31c0166e365bb44db1a1 to your computer and use it in GitHub Desktop.
use awk and sed get the elapsed time of vim startuptim
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
"获取插件加载时间 | |
vim filename --startuptime 'time.txt' | |
"统计加载插件总用时 | |
awk '{print $2}' time.txt | sed 's/\([0-9].*\):/\1/g' | awk '{sum+=$1} END {print sum}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment