Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 39286:331ab85e910b
cleanup: make all uses of timedcm specify what they're timing
It's not used in the timing itself, but it's valuable for the trace
events we emit.
Differential Revision: https://phab.mercurial-scm.org/D4349
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 21 Aug 2018 17:15:51 -0400 |
parents | 497effb0a04a |
children | e00123f63410 |
line wrap: on
line diff
--- a/mercurial/util.py Tue Aug 21 17:13:35 2018 -0400 +++ b/mercurial/util.py Tue Aug 21 17:15:51 2018 -0400 @@ -2929,7 +2929,7 @@ ''' def wrapper(*args, **kwargs): - with timedcm() as time_stats: + with timedcm(pycompat.bytestr(func.__name__)) as time_stats: result = func(*args, **kwargs) stderr = procutil.stderr stderr.write('%s%s: %s\n' % (