Water Hammer Protection (Surge Vessel)

What is better and why: to determine the gas volume in a surge vessel by the water level inside the vessel or mass control of water weight?