Show More
@@ -1580,6 +1580,7 profiling is done using lsprof. | |||||
1580 |
|
1580 | |||
1581 | Only used by the ``stat`` profiler. |
|
1581 | Only used by the ``stat`` profiler. | |
1582 |
|
1582 | |||
|
1583 | For the ``hotpath`` format, default is ``0.05``. | |||
1583 | For the ``chrome`` format, default is ``0.005``. |
|
1584 | For the ``chrome`` format, default is ``0.005``. | |
1584 |
|
1585 | |||
1585 | The option is unused on other formats. |
|
1586 | The option is unused on other formats. |
@@ -138,6 +138,9 def statprofile(ui, fp): | |||||
138 | showmin = ui.configwith(fraction, 'profiling', 'showmin', 0.005) |
|
138 | showmin = ui.configwith(fraction, 'profiling', 'showmin', 0.005) | |
139 | showmax = ui.configwith(fraction, 'profiling', 'showmax', 0.999) |
|
139 | showmax = ui.configwith(fraction, 'profiling', 'showmax', 0.999) | |
140 | kwargs.update(minthreshold=showmin, maxthreshold=showmax) |
|
140 | kwargs.update(minthreshold=showmin, maxthreshold=showmax) | |
|
141 | elif profformat == 'hotpath': | |||
|
142 | limit = ui.configwith(fraction, 'profiling', 'showmin', 0.05) | |||
|
143 | kwargs['limit'] = limit | |||
141 |
|
144 | |||
142 | statprof.display(fp, data=data, format=displayformat, **kwargs) |
|
145 | statprof.display(fp, data=data, format=displayformat, **kwargs) | |
143 |
|
146 |
@@ -33,3 +33,6 New errors are not allowed. Warnings are | |||||
33 |
|
33 | |||
34 | $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' | |
|
34 | $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' | | |
35 | > python contrib/check-config.py |
|
35 | > python contrib/check-config.py | |
|
36 | limit = ui.configwith(fraction, 'profiling', 'showmin', 0.05) | |||
|
37 | ||||
|
38 | conflict on profiling.showmin: ('with', '0.05') != ('with', '0.005') |
General Comments 0
You need to be logged in to leave comments.
Login now