parameters: (self)
docstring: Print statistics of launched kernels during the profiling period.
docstring_summary: Print statistics of launched kernels during the profiling period.
docstring_tokens: Print statistics of launched kernels during the profiling period .
function: def _print_statistics_info(self):
          """Print statistics of launched kernels during the profiling period."""
  
          # headers
          table_header = table_header = self._make_table_header('count')
          column_header = '[      %     total   count |      min       avg       max   ] Kernel name'
          # partition line
          line_length = max(len(column_header), len(table_header))
          outer_partition_line = '=' * line_length
          inner_partition_line = '-' * line_length
  
          #message in one line
          string_list = []
          values_list = []
          for key in self._statistical_results:
              result = self._statistical_results[key]
              fraction = result.total_time / self._total_time_ms * 100.0
              string_list.append(
                  '[{:6.2f}% {:7.3f} s {:6d}x |{:9.3f} {:9.3f} {:9.3f} ms] {}')
              values_list.append([
                  fraction,
                  result.total_time / 1000.0,
                  result.counter,
                  result.min_time,
                  result.total_time / result.counter,  # avg_time
                  result.max_time,
                  result.name
              ])
  
          # summary
          summary_line = '[100.00%] Total execution time: '
          summary_line += f'{self._total_time_ms/1000:7.3f} s   '
          summary_line += f'number of results: {len(self._statistical_results)}'
  
          # print
          print(outer_partition_line)
          print(table_header)
          print(outer_partition_line)
          print(column_header)
          print(inner_partition_line)
          result_num = len(self._statistical_results)
          for idx in range(result_num):
              print(string_list[idx].format(*values_list[idx]))
          print(inner_partition_line)
          print(summary_line)
          print(outer_partition_line)
function_tokens: def _print_statistics_info ( self ) : # headers table_header = table_header = self . _make_table_header ( 'count' ) column_header = '[      %     total   count |      min       avg       max   ] Kernel name' # partition line line_length = max ( len ( column_header ) , len ( table_header ) ) outer_partition_line = '=' * line_length inner_partition_line = '-' * line_length #message in one line string_list = [ ] values_list = [ ] for key in self . _statistical_results : result = self . _statistical_results [ key ] fraction = result . total_time / self . _total_time_ms * 100.0 string_list . append ( '[{:6.2f}% {:7.3f} s {:6d}x |{:9.3f} {:9.3f} {:9.3f} ms] {}' ) values_list . append ( [ fraction , result . total_time / 1000.0 , result . counter , result . min_time , result . total_time / result . counter , # avg_time result . max_time , result . name ] ) # summary summary_line = '[100.00%] Total execution time: ' summary_line += f'{self._total_time_ms/1000:7.3f} s   ' summary_line += f'number of results: {len(self._statistical_results)}' # print print ( outer_partition_line ) print ( table_header ) print ( outer_partition_line ) print ( column_header ) print ( inner_partition_line ) result_num = len ( self . _statistical_results ) for idx in range ( result_num ) : print ( string_list [ idx ] . format ( * values_list [ idx ] ) ) print ( inner_partition_line ) print ( summary_line ) print ( outer_partition_line )