parameters: (raw_data)
docstring: extracting all strings
docstring_summary: extracting all strings
docstring_tokens: extracting all strings
function: def convert_dpu(raw_data):
      global literal_pool, dpu_core_num, vtf_events, dpu_profile_summary
      global TIMESYNC
      offset = TIMESYNC.get('sync', {}).get('vart')
      timeout = TIMESYNC.get('timeout', 0)
  
      dpu_parser = DPUEventParser()
      timelines = dpu_parser.parse(
          raw_data, {"time_offset": offset, "time_limit": timeout})
  
      dpu_profile_summary = dpu_parser.get_dpu_profile_summary("txt")
  
      """extracting all strings"""
      for dpu in timelines:
          for event in dpu.timeline:
              literal_pool.append(event.subgraph)
              literal_pool.append(event.it)
              literal_pool.append(event.ot)
      literal_pool = list(set(literal_pool))
      literal_pool.insert(0, "RESERVED")
  
      for dpu_timeline in timelines:
          if len(dpu_timeline.timeline) == 0:
              continue
          dpu_core_num += 1
          for event in dpu_timeline.timeline:
              pass
  
      vtf_events.sort(key=lambda x: x.ts)
function_tokens: def convert_dpu ( raw_data ) : global literal_pool , dpu_core_num , vtf_events , dpu_profile_summary global TIMESYNC offset = TIMESYNC . get ( 'sync' , { } ) . get ( 'vart' ) timeout = TIMESYNC . get ( 'timeout' , 0 ) dpu_parser = DPUEventParser ( ) timelines = dpu_parser . parse ( raw_data , { "time_offset" : offset , "time_limit" : timeout } ) dpu_profile_summary = dpu_parser . get_dpu_profile_summary ( "txt" ) for dpu in timelines : for event in dpu . timeline : literal_pool . append ( event . subgraph ) literal_pool . append ( event . it ) literal_pool . append ( event . ot ) literal_pool = list ( set ( literal_pool ) ) literal_pool . insert ( 0 , "RESERVED" ) for dpu_timeline in timelines : if len ( dpu_timeline . timeline ) == 0 : continue dpu_core_num += 1 for event in dpu_timeline . timeline : pass vtf_events . sort ( key = lambda x : x . ts )