def _record_execution_span(self, glet):
    now = time.time()

    if self.last_span_time is None:
      self.last_span_time = now
      return

    if not isinstance(glet, ProfilingGreenlet):
      # The hub greenlet is an instance of greenlet.greenlet rather than
      # ProfilingGreenlet.
      return

    finished = glet.ready()

    span = ExecutionSpan(glet, self.last_span_time, now,
                         traceback.extract_stack(), finished)
    self.exec_spans.append((now, span))

    self.last_span_time = now
Note that a greenlet is yielding.
dataset/ETHPy150Open tellapart/gevent_request_profiler/tellapart/frontend/gevent_profiler.py/ProfilingHub._record_execution_span