If you know your thresholds, you can set your device to warn you if you go into the red zone. Froome famously uses this to measure his efforts on big climbs - which is why you'll see him letting riders attack and not follow them, because he knows they're going to blow up eventually and he'll be able to catch them.
The team will also use the recorded data for later analysis.