Changeset 5251ec6 in sasview for src/sas/sasgui/guiframe/custom_pstats.py
- Timestamp:
- Oct 11, 2018 12:20:56 PM (5 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
- Children:
- 98b9f32
- Parents:
- 67ed543
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/custom_pstats.py
r959eb01 r5251ec6 36 36 width = self.max_name_len 37 37 if self.fcn_list: 38 list= self.fcn_list[:]38 stats = self.fcn_list[:] 39 39 temp_msg = " Ordered by: " + self.sort_type + '\n' 40 40 else: 41 list = self.stats.keys()41 stats = list(self.stats.keys()) 42 42 temp_msg = " Random listing order was used\n" 43 43 44 44 for selection in amount: 45 list, temp_msg = self.eval_print_amount(selection, list, temp_msg)45 stats, temp_msg = self.eval_print_amount(selection, stats, temp_msg) 46 46 47 count = len( list)47 count = len(stats) 48 48 49 if not list:50 width , list = 0, list49 if not stats: 50 width = 0 51 51 else: 52 msg += 52 msg += str(temp_msg) + '\n' 53 53 if count < len(self.stats): 54 54 width = 0 55 for func in list:55 for func in stats: 56 56 if len(func_std_string(func)) > width: 57 57 width = len(func_std_string(func)) 58 58 59 width , list = width+2, list60 if list:59 width = width+2 60 if stats: 61 61 msg += ' ncalls tottime percall cumtime percall' 62 62 msg += ' filename:lineno(function)' + "\n" 63 for func in list:63 for func in stats: 64 64 cc, nc, tt, ct, callers = self.stats[func] 65 65 c = str(nc)
Note: See TracChangeset
for help on using the changeset viewer.