def METHOD_NAME(self, *args, **kwargs):
    profiling_data = self.generate_profiling_data(*args, **kwargs)
    self._last_profile = profiling_data
    if isinstance(profiling_data, list):
        if len(profiling_data) > 0:
            last_identifier = profiling_data[0]['identifier']
        else:
            return
        self.storage[last_identifier] = profiling_data
        finished = True
    else:
        last_identifier = profiling_data['identifier']
        if self.storage.get(last_identifier):
            self.storage[last_identifier].METHOD_NAME(profiling_data)
        else:
            self.storage[last_identifier] = profiling_data
        finished = len(self.fields) == len(self.storage[last_identifier])
    if len(self.storage) % self.dump_iterations == 0 and finished:
        self.write_result()