The top sketch would be best if the net anchorage force is pushing the purlin top flange downhill. This would normally be the case on a steeper pitch roof.
The lower sketch would be best if the net anchorage force is pushing the purlin top flange uphill. This would normally be the case on a lower pitch roof.
Net anchorage force is going to be the directional sum of the rotational forces due to the purlin shape,which will generally push the cross-section towards the upper flange (function of the forces and the angle of the principal axis of the section), and the gravity component of the force which is always going to push the purlin downslope. For a 0 slope roof, rotational force is at a maximum and gravity force is zero. For a steeper pitch roof, the rotational force is smaller, and the gravity force is larger. Rotating the purlin to have the top flange facing the other way is not recommended for anything but minimal slope roofs, but will then make the two components additive and both would be oriented downslope.