def generateTraceReport(self, traceName, path = None, format = "html"):
    """
    Generate a performance report of a trace.
    """
    if not traceName in self.analyzer.traces:
      self.analyzer.fail("Trace not found: %s" % traceName)
      
    trace         = self.analyzer.traces[traceName]
    traceFileName = self.analyzer.traceFiles.get(traceName, None)
    
    if not path:
      path = traceFileName.split(".", 1)[0] + "_report"
    
    VgReport.generateReport(self.analyzer.project, trace, traceFileName, path, format)
    self.analyzer.reportInfo("Performance report saved to '%s'." % (path))
dataset/ETHPy150Open skyostil/tracy/src/analyzer/plugins/vg/VgPlugin.py/VgPlugin.generateTraceReport/original