docs: def sample(self, frame):
          """Samples the given frame."""
          frames = self.frame_stack(frame)
          if frames:
              frames.pop()
          parent_stats = self.stats
          for f in frames:
              parent_stats = parent_stats.ensure_child(f.f_code, void)
          stats = parent_stats.ensure_child(frame.f_code, RecordingStatistics)
          stats.own_hits += 1