AFAIK the timeline of profitability is somewhat like this:
- really profitable after introducing private repos
- burning quite some money for growth after they took VC money
- really profitable again after they changed their pricing to per-seat pricing
Most companies leave startup status long before they are profitable. It has much more to do with the stability and maturity of the business model and whether it can be scaled.