<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_performance(self, ncores, nfilters, ntemplates, run_time, setup_time):
 """ Calls variables from pycbc_inspiral to be used in a timing calculation """

        self.run_time = run_time
        self.setup_time = setup_time
        self.ncores = ncores
        self.nfilters = nfilters
        self.ntemplates = ntemplates
        self.write_performance = True