Phrase: Waiting for the train exhausted her patience

Waiting for the train exhausted her patience

how do i identify the above phrase in bold letters?

It’s a gerund phrase, and it is the subject of the sentence.