Mercurial > hg
diff setup.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 | 65a46635fb31 |
children | 3f59cb1ccc73 |