def renumberTrace(self, traceName):
    """
    Renumber a trace so that the events contained in it start at zero.
    
    @param traceName:   Name of the trace to renumber
    """
    if not traceName in self.analyzer.traces:
      self.analyzer.fail("Trace not found: %s" % traceName)

    trace = self.analyzer.traces[traceName]
    
    for i, event in enumerate(trace.events):
      event.seq = i
    
    self.reportInfo("%d events renumbered." % (len(trace.events)))
dataset/ETHPy150Open skyostil/tracy/src/analyzer/plugins/core/CorePlugin.py/CoreInteractivePlugin.renumberTrace/original