changeset 32788 | eede022fc142 |
parent 32004 | bd3cb917761a |
child 33328 | c8f212cb0c83 |
--- a/mercurial/hgweb/hgweb_mod.py Fri Jun 09 12:36:07 2017 +0100 +++ b/mercurial/hgweb/hgweb_mod.py Fri Jun 09 12:29:29 2017 +0100 @@ -311,7 +311,8 @@ should be using instances of this class as the WSGI application. """ with self._obtainrepo() as repo: - with profiling.maybeprofile(repo.ui): + profile = repo.ui.configbool('profiling', 'enabled') + with profiling.profile(repo.ui, enabled=profile): for r in self._runwsgi(req, repo): yield r