def METHOD_NAME(self):
    if len(self.rank_to_history) == 0:
        return
    self.dump_record()
    # if this is rank 0, wait for merge
    rank = dist.get_rank()
    if rank == 1:
        # take the base time of rank 0 as standard
        self.merge_recode()
        self.visualize_record()