That's not GAAP profitability. R&D and sales appear as operating expenses and get deducted from revenue before net income.
This matters a lot for software businesses with recurring revenue (i.e. most SaaS businesses). With software, you build the software once and then you have an asset that you can sell a potentially infinite number of times, for many years into the future. The engineering salaries for building the software count as R&D, and get deducted from the current year's income statement. Then you sell the software, which may take an expensive consultative sales process but signs up a customer who will continue paying monthly for several years. The sales expense is recorded in the current year, but the revenue is booked over several years.
The metric you're looking for is unit economic profitability, and specifically for B2B software businesses, LTV - CAC. If this is positive, then you are making more for each customer you sign up than it cost to sign them up, and you have a sustainable business (at least until the competitive landscape changes, which is a risk every business faces). This is not the same thing as GAAP profitability: if you know that you have a product that makes $5 in revenue for every $1 in sales you put in, it makes sense to raise as much capital as possible, hire as many salespeople as possible, and get every possible user using the software before a competitor comes out. That will look like a money-losing business under GAAP, because for every dollar that comes in this year you might be spending $2 in sales. But the part that's missing from the GAAP statement is that next year you have 4x as many customers who will continue paying you money at no additional cost to you. At some point, when the growth curve flattens, you just lay off the salespeople and milk the existing customers for everything they're worth. This is the story of Oracle, Microsoft, Cisco, and now Facebook and Google.
VCs know to look for these metrics (along with growth rate, net promoter score, engagement, and churn, which are proxies for CAC and LTV). The general public does not, and they're not required in SEC disclosures or normal accounting statements (which generally predate the SaaS business model).