code: def add_stack_frame(self, stack_frame):
          
          if len(self.stack_frames) >= MAX_FRAMES:
              self.dropped_frames_count += 1
          else:
              self.stack_frames.append(stack_frame.format_stack_frame_json())
docs: Add StackFrame to frames list.