parameters: (tracemap, trace)
docstring: Adds a trace to the tracemap.
  
    Adds entries in the trace to the tracemap. All new calls will be added to
    the tracemap. If the calls already exist in the tracemap then they will be
    replaced if they happened sooner in the new trace.
  
    Args:
      tracemap: the tracemap
      trace: the trace
docstring_summary: Adds a trace to the tracemap.
docstring_tokens: Adds a trace to the tracemap .
function: def AddTrace (tracemap, trace):
    """Adds a trace to the tracemap.
  
    Adds entries in the trace to the tracemap. All new calls will be added to
    the tracemap. If the calls already exist in the tracemap then they will be
    replaced if they happened sooner in the new trace.
  
    Args:
      tracemap: the tracemap
      trace: the trace
  
    """
    for trace_entry in trace:
      call = trace_entry[3]
      if (not call in tracemap) or (
          Timestamp(tracemap[call]) > Timestamp(trace_entry)):
        tracemap[call] = trace_entry
function_tokens: def AddTrace ( tracemap , trace ) : for trace_entry in trace : call = trace_entry [ 3 ] if ( not call in tracemap ) or ( Timestamp ( tracemap [ call ] ) > Timestamp ( trace_entry ) ) : tracemap [ call ] = trace_entry