'Adds an element to the trace indicating that a routine was called.
Args:
component: The result of calling the routine.
target: The name of the routine.
args: The args consumed in order to call this routine.
filename: The file in which the routine is defined, or None if N/A.
lineno: The line number on which the routine is defined, or None if N/A.
capacity: (bool) Whether the routine could have accepted additional args.'

def AddCalledRoutine(self, component, target, args, filename, lineno, capacity):

    element = FireTraceElement(component=component, action=CALLED_ROUTINE, target=target, args=args, filename=filename, lineno=lineno, capacity=capacity)
    self.elements.append(element)
