parameters: (self, step_event)
return_statement: return None
docstring: Returns the Event associated with a step event, or None.
  
      Args:
        step_event: (Event) Step event.
  
      Returns:
        an Event that matches the step event, or None.
docstring_summary: Returns the Event associated with a step event, or None.
docstring_tokens: Returns the Event associated with a step event or None .
function: def EventFromStep(self, step_event):
      """Returns the Event associated with a step event, or None.
  
      Args:
        step_event: (Event) Step event.
  
      Returns:
        an Event that matches the step event, or None.
      """
      self._IndexEvents()
      assert 'step' in step_event.args and step_event.tracing_event['ph'] == 'T'
      candidates = self._interval_tree.EventsAt(step_event.start_msec)
      for event in candidates:
        # IDs are only unique within a process (often they are pointers).
        if (event.pid == step_event.pid and event.tracing_event['ph'] != 'T'
            and event.name == step_event.name and event.id == step_event.id):
          return event
      return None
function_tokens: def EventFromStep ( self , step_event ) : self . _IndexEvents ( ) assert 'step' in step_event . args and step_event . tracing_event [ 'ph' ] == 'T' candidates = self . _interval_tree . EventsAt ( step_event . start_msec ) for event in candidates : # IDs are only unique within a process (often they are pointers). if ( event . pid == step_event . pid and event . tracing_event [ 'ph' ] != 'T' and event . name == step_event . name and event . id == step_event . id ) : return event return None