def METHOD_NAME(self, remove_persistence_data=True):
    if self.profiler_process is not None:
        # wait for plotting
        time.sleep(5)
    self.process.kill()
    if remove_persistence_data:
        os.system("rm build/persistence/sqlite.db")
        prepare_persistence_dir()