[PATCH 2 of 8 v4] ui: provide a mechanism to track and log blocked time

Simon Farnsworth simonfar at fb.com
Mon Feb 13 13:27:33 EST 2017


On 13/02/2017 18:06, Bryan O'Sullivan wrote:
>
> On Mon, Feb 13, 2017 at 9:29 AM, Simon Farnsworth <simonfar at fb.com
> <mailto:simonfar at fb.com>> wrote:
>
>     +        duration = (util.timer() - starttime) * 1000
>     +        key += '_blocked'
>     +        self._blockedtimes[key] += duration
>
>
> Could be a one-liner, which will have a tiny but positive impact on perf:
>
> self._blockedtimes[key + '_blocked'] += (util.timer() - starttime) * 1000

Will change for the next resend.

-- 
Simon Farnsworth


More information about the Mercurial-devel mailing list