Pros first do the toss, choose to serve or receive, or choose the side, and then they begin the warmup on particular side. On club level (in my area) we first do the warmup, and then do the toss. The problem is if someone who win the toss choose to switch sides. That may be smart in sunny or windy conditions. Is that fair? When you do the toss? (Sorry on my english).