def saveTrace(self, traceName, fileName = None):
    """
    Save a trace to a file.

    @param traceName:   Trace to save
    @param fileName:    Output trace file or the original file name by default
    """
    if not fileName:
      try:
        fileName = self.analyzer.traceFiles[traceName]
      except KeyError:
        self.analyzer.fail(traceName % "Original file name for trace %s not found.")
    
    self.exportTrace(traceName, fileName, format = "binary")
    self.analyzer.traceFiles[traceName] = fileName
dataset/ETHPy150Open skyostil/tracy/src/analyzer/plugins/core/CorePlugin.py/CoreInteractivePlugin.saveTrace/swapped operands of `%`