def get_overview_page_analysis_table_args(overview_page_analysis):
    """Creates a gviz DataTable object from an OverviewPageAnalysis proto.

  Args:
    overview_page_analysis: An overview_page_pb2.OverviewPageAnalysis.

  Returns:
    Returns a gviz_api.DataTable
  """
    table_description = [('selfTimePercent', 'number', 'Time (%)'), (
        'cumulativeTimePercent', 'number', 'Cumulative time (%)'), (
        'category', 'string', 'Category'), ('operation', 'string',
        'Operation'), ('flopRate', 'number', 'GFLOPs/Sec')]
    data = []
    for op in overview_page_analysis.top_device_ops:
        row = [op.self_time_fraction, op.cumulative_time_fraction, str(op.
            category), str(op.name), op.flop_rate]
        data.append(row)
    device_compute_16bit_percent = '{:.1f}'.format(overview_page_analysis.
        device_compute_16bit_percent)
    device_compute_32bit_percent = '{:.1f}'.format(overview_page_analysis.
        device_compute_32bit_percent)
    remark_text = overview_page_analysis.remark_text
    remark_color = overview_page_analysis.remark_color
    custom_properties = {'device_compute_16bit_percent':
        device_compute_16bit_percent, 'device_compute_32bit_percent':
        device_compute_32bit_percent, 'remark_text': remark_text,
        'remark_color': remark_color}
    return table_description, data, custom_properties
