Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vim-plugins-profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,14 @@ def print_summary(self, n):
avg_data = self.average_data()
# Sort by average time
rank = 0
total = 0
for name, time in self.__sort_data(avg_data)[:n]:
rank += 1
total += time
print("%i\t%7.3f %s" % (rank, time, name))

print(''.center(length, '='))
print('\nTotal startup time: ' + str(round(total,2)))

@staticmethod
def __sort_data(d, reverse=True):
Expand Down