##// END OF EJS Templates
configitems: register the 'profiling.type' config
Boris Feld -
r34413:83dfbda4 default
parent child Browse files
Show More
@@ -350,6 +350,9 b" coreconfigitem('profiling', 'sort',"
350 coreconfigitem('profiling', 'statformat',
350 coreconfigitem('profiling', 'statformat',
351 default='hotpath',
351 default='hotpath',
352 )
352 )
353 coreconfigitem('profiling', 'type',
354 default='stat',
355 )
353 coreconfigitem('progress', 'assume-tty',
356 coreconfigitem('progress', 'assume-tty',
354 default=False,
357 default=False,
355 )
358 )
@@ -183,7 +183,7 b' class profile(object):'
183 profiler = encoding.environ.get('HGPROF')
183 profiler = encoding.environ.get('HGPROF')
184 proffn = None
184 proffn = None
185 if profiler is None:
185 if profiler is None:
186 profiler = self._ui.config('profiling', 'type', default='stat')
186 profiler = self._ui.config('profiling', 'type')
187 if profiler not in ('ls', 'stat', 'flame'):
187 if profiler not in ('ls', 'stat', 'flame'):
188 # try load profiler from extension with the same name
188 # try load profiler from extension with the same name
189 proffn = _loadprofiler(self._ui, profiler)
189 proffn = _loadprofiler(self._ui, profiler)
General Comments 0
You need to be logged in to leave comments. Login now