Show More
@@ -748,6 +748,7 b' def _dispatch(req):' | |||||
748 | def lsprofile(ui, func, fp): |
|
748 | def lsprofile(ui, func, fp): | |
749 | format = ui.config('profiling', 'format', default='text') |
|
749 | format = ui.config('profiling', 'format', default='text') | |
750 | field = ui.config('profiling', 'sort', default='inlinetime') |
|
750 | field = ui.config('profiling', 'sort', default='inlinetime') | |
|
751 | limit = ui.configint('profiling', 'limit', default=30) | |||
751 | climit = ui.configint('profiling', 'nested', default=5) |
|
752 | climit = ui.configint('profiling', 'nested', default=5) | |
752 |
|
753 | |||
753 | if format not in ['text', 'kcachegrind']: |
|
754 | if format not in ['text', 'kcachegrind']: | |
@@ -776,7 +777,7 b' def lsprofile(ui, func, fp):' | |||||
776 | # format == 'text' |
|
777 | # format == 'text' | |
777 | stats = lsprof.Stats(p.getstats()) |
|
778 | stats = lsprof.Stats(p.getstats()) | |
778 | stats.sort(field) |
|
779 | stats.sort(field) | |
779 |
stats.pprint(limit= |
|
780 | stats.pprint(limit=limit, file=fp, climit=climit) | |
780 |
|
781 | |||
781 | def statprofile(ui, func, fp): |
|
782 | def statprofile(ui, func, fp): | |
782 | try: |
|
783 | try: |
@@ -996,6 +996,10 b' profiling is done using lsprof.' | |||||
996 | ``inlinetime``. |
|
996 | ``inlinetime``. | |
997 | Default: inlinetime. |
|
997 | Default: inlinetime. | |
998 |
|
998 | |||
|
999 | ``limit`` | |||
|
1000 | Number of lines to show. Specific to the ``ls`` instrumenting profiler. | |||
|
1001 | Default: 30. | |||
|
1002 | ||||
999 | ``nested`` |
|
1003 | ``nested`` | |
1000 | Show at most this number of lines of drill-down info in a tree structure |
|
1004 | Show at most this number of lines of drill-down info in a tree structure | |
1001 | after each main entry. This can help explain the difference between Total |
|
1005 | after each main entry. This can help explain the difference between Total |
General Comments 0
You need to be logged in to leave comments.
Login now