Mercurial > hg
comparison mercurial/context.py @ 18736:af9ddea2cb99
util: add a timed function for use during development
I often want to measure the cost of a function call before/after
an optimization, where using top level "hg --time" timing introduces
enough other noise that I can't tell if my efforts are having an
effect.
This decorator allows a developer to measure a function's cost with
finer granularity.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Thu, 28 Feb 2013 13:11:42 -0800 |
parents | 4fb92f14a97a |
children | f02045645d12 |
comparison
equal
deleted
inserted
replaced
18735:716cad930691 | 18736:af9ddea2cb99 |
---|