CI can help for some situations, but frequently the reason a particular code-path gets slow isn't visible in CI - could be anything from slow third-parties to slow production-scale databases.
Most application performance monitoring tools can set up alerts for specific metrics; at one client, they used that to ensure that an endpoint called by external lead-generation code was returning a result within a specified time budget. (otherwise they wouldn't win any leads, which would be Very Bad)