Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/dispatch.py @ 25834:aca8ae2b0cb2
profiler: mark developer-only config option
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 25 Jun 2015 17:46:29 -0500 |
parents | 8243e999f22b |
children | d491f289045f |
comparison
equal
deleted
inserted
replaced
25833:8243e999f22b | 25834:aca8ae2b0cb2 |
---|---|
936 from flamegraph import flamegraph | 936 from flamegraph import flamegraph |
937 except ImportError: | 937 except ImportError: |
938 raise util.Abort(_( | 938 raise util.Abort(_( |
939 'flamegraph not available - install from ' | 939 'flamegraph not available - install from ' |
940 'https://github.com/evanhempel/python-flamegraph')) | 940 'https://github.com/evanhempel/python-flamegraph')) |
941 # developer config: profiling.freq | |
941 freq = ui.configint('profiling', 'freq', default=1000) | 942 freq = ui.configint('profiling', 'freq', default=1000) |
942 filter_ = None | 943 filter_ = None |
943 collapse_recursion = True | 944 collapse_recursion = True |
944 thread = flamegraph.ProfileThread(fp, 1.0 / freq, | 945 thread = flamegraph.ProfileThread(fp, 1.0 / freq, |
945 filter_, collapse_recursion) | 946 filter_, collapse_recursion) |