What is the instrument used to measure the direction of wind?

Wind vanes and wind socks.