def show(self): """The property of step trace info.""" summary_info = {} if self._result: summary_info = get_summary_for_step_trace(self._result[-1], self._header) summary_info['total_steps'] = len(self._result) - 1 print('\nStep trace summary info (unit: syscnt):') print(summary_info) print( '\nThe step trace parse result saves under ${summary_dir}/profiler/%s' % self.output_file)
def summary(self): """The property of summary info.""" summary = get_summary_for_step_trace(self._data[-1], self.__column__) summary['total_steps'] = self._size return summary