def METHOD_NAME(self, path: str) -> None:
    """Start recording a trace file to disk.
    Parameters
    ----------
    path : str
        Write the trace to this path.
    """
    self.trace_file = PerfTraceFile(path)