How to use a goniometer / phase scope when mastering

What is a goniometer and how can it be used when mastering?