equal
deleted
inserted
replaced
704 def lsprofile(ui, func, fp): |
704 def lsprofile(ui, func, fp): |
705 format = ui.config('profiling', 'format', default='text') |
705 format = ui.config('profiling', 'format', default='text') |
706 field = ui.config('profiling', 'sort', default='inlinetime') |
706 field = ui.config('profiling', 'sort', default='inlinetime') |
707 climit = ui.configint('profiling', 'nested', default=5) |
707 climit = ui.configint('profiling', 'nested', default=5) |
708 |
708 |
709 if not format in ['text', 'kcachegrind']: |
709 if format not in ['text', 'kcachegrind']: |
710 ui.warn(_("unrecognized profiling format '%s'" |
710 ui.warn(_("unrecognized profiling format '%s'" |
711 " - Ignored\n") % format) |
711 " - Ignored\n") % format) |
712 format = 'text' |
712 format = 'text' |
713 |
713 |
714 try: |
714 try: |