Functional analysis and real analysis are not (entirely) pure math, they are basic and highly applicable in application including but not limited to theoretical physics. The more important and harder to answer question is how a limed budget of time should be allocated to learning an unlimited amount of useful mathematics. My entirely unhelpful opinion is that between 3 and 30 percent of mathematics learning time should be devoted to functional analysis and real analysis depending on individual needs, abilities, and interest.