Show More
@@ -748,6 +748,7 b' def _dispatch(req):' | |||
|
748 | 748 | def lsprofile(ui, func, fp): |
|
749 | 749 | format = ui.config('profiling', 'format', default='text') |
|
750 | 750 | field = ui.config('profiling', 'sort', default='inlinetime') |
|
751 | limit = ui.configint('profiling', 'limit', default=30) | |
|
751 | 752 | climit = ui.configint('profiling', 'nested', default=5) |
|
752 | 753 | |
|
753 | 754 | if format not in ['text', 'kcachegrind']: |
@@ -776,7 +777,7 b' def lsprofile(ui, func, fp):' | |||
|
776 | 777 | # format == 'text' |
|
777 | 778 | stats = lsprof.Stats(p.getstats()) |
|
778 | 779 | stats.sort(field) |
|
779 |
stats.pprint(limit= |
|
|
780 | stats.pprint(limit=limit, file=fp, climit=climit) | |
|
780 | 781 | |
|
781 | 782 | def statprofile(ui, func, fp): |
|
782 | 783 | try: |
@@ -996,6 +996,10 b' profiling is done using lsprof.' | |||
|
996 | 996 | ``inlinetime``. |
|
997 | 997 | Default: inlinetime. |
|
998 | 998 | |
|
999 | ``limit`` | |
|
1000 | Number of lines to show. Specific to the ``ls`` instrumenting profiler. | |
|
1001 | Default: 30. | |
|
1002 | ||
|
999 | 1003 | ``nested`` |
|
1000 | 1004 | Show at most this number of lines of drill-down info in a tree structure |
|
1001 | 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