183 f.write("{0}\n".format(title)) |
183 f.write("{0}\n".format(title)) |
184 f.write("{0}\n\n".format(len(title) * "=")) |
184 f.write("{0}\n\n".format(len(title) * "=")) |
185 itm = self.callTrace.topLevelItem(0) |
185 itm = self.callTrace.topLevelItem(0) |
186 while itm is not None: |
186 while itm is not None: |
187 isCall = itm.data(0, Qt.ItemDataRole.UserRole) |
187 isCall = itm.data(0, Qt.ItemDataRole.UserRole) |
188 if isCall: |
188 call = "->" if isCall else "<-" |
189 call = "->" |
|
190 else: |
|
191 call = "<-" |
|
192 f.write("{0} {1} || {2}\n".format( |
189 f.write("{0} {1} || {2}\n".format( |
193 call, |
190 call, |
194 itm.text(1), itm.text(2))) |
191 itm.text(1), itm.text(2))) |
195 itm = self.callTrace.itemBelow(itm) |
192 itm = self.callTrace.itemBelow(itm) |
196 except OSError as err: |
193 except OSError as err: |