DETROIT — General Motors said on Friday that it paid its chief executive, Mary T. Barra, a total of $16.2 million in compensation last year, in spite of the company’s record number of safety recalls in 2014.

The compensation package, revealed in G.M.’s proxy statement, said Ms. Barra earned a salary of $1.57 million, with the remainder of her pay coming in other cash compensation and stock awards.

The company said Ms. Barra exceeded an internal compensation target set after she took over the top job at G.M., the nation’s largest automaker, early last year upon the retirement of her predecessor, Daniel Akerson.

But G.M. said she and other senior executives could have earned more money if other performance measures had been met.