Mercurial > hg
diff mercurial/extensions.py @ 39508:1a2bfc4d756a
extensions: trace the total time of running all uisetup callbacks
Differential Revision: https://phab.mercurial-scm.org/D4510
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 06 Sep 2018 16:20:05 -0400 |
parents | 331ab85e910b |
children | 3a86f7eb8b78 |
line wrap: on
line diff
--- a/mercurial/extensions.py Mon Sep 10 19:36:25 2018 -0700 +++ b/mercurial/extensions.py Thu Sep 06 16:20:05 2018 -0400 @@ -284,13 +284,15 @@ broken = set() log('- executing uisetup hooks\n') - for name in _order[newindex:]: - log(' - running uisetup for %r\n', name) - with util.timedcm('uisetup %r', name) as stats: - if not _runuisetup(name, ui): - log(' - the %r extension uisetup failed\n', name) - broken.add(name) - log(' > uisetup for %r took %s\n', name, stats) + with util.timedcm('all uisetup') as alluisetupstats: + for name in _order[newindex:]: + log(' - running uisetup for %r\n', name) + with util.timedcm('uisetup %r', name) as stats: + if not _runuisetup(name, ui): + log(' - the %r extension uisetup failed\n', name) + broken.add(name) + log(' > uisetup for %r took %s\n', name, stats) + log('> all uisetup took %s\n', alluisetupstats) log('- executing extsetup hooks\n') for name in _order[newindex:]: