diff mercurial/templatekw.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 c4ff927b6f68
children 3cdb6f2f6789
line wrap: on
line diff