How To Do You Measure the Quality of Your AC Power?


What is the best way to measure the quality of the AC power feeding your listening room? Is there a device you can plug into an outlet that will give you the voltage, frequency, the total amount of distortion relative to a perfect sine wave, etc.? Furthermore, how would you measure the ability of your AC main to deliver transient currents?
It seems like there may be a scenario where you could measure your power quality to be excellent but somewhere in the line you could have a loose or poorly made wiring connection which under heavy load (such as powerful bass notes) you could run into trouble with power delivery. In this scenario, an AC regenerator would not help you, or would help very little.

Just curious what methods people have come up with to systematically analyze their power and how they use those measurements to drive buying decisions or repair work, if needed.

Edit: My apologies for the title typo.
128x128mkgus
They make tools for evaluating and testing your power to your house but i would try to just run a dedicated line to your stereo and that should help significantly for you sound and be sure to connect all of your equipment to the dedicated line so it is all at the same ground potential.
take the advice of MC. He is the only one here that has actually done it".....  

To wit:
What you do is what everyone does. Make all your connections from the panel to your room as clean and tight AND FEW as possible. This is where the "dedicated" (which really means direct) line comes in. Then from there you use as good quality outlet, power cords, and conditioner as you can.  
The better the quality, the better the results.
Strip away all the blather above and this is what you get. Every time.
@Mkgus  You could look at our purchasing a line conditioner.There is one made by Trip lite I think it's around 90 .00 it will not only protect against spikes but it regulate the voltage. If the voltage dropped to say 85 volts on your circuit feeding your audio system it we correct it to 120, also if it went to high say 130 it will also correct back to 120. Also a whole house surge suppression ( breaker) depending on the panels manufacturer would also help protect the circuits feeding your audio system as well as rest of the house. If you have power and all seems to work fluctuations are tough to troubleshoot and actually repair some people don't know there occuring. The conditioner will help with some piece of mind yes I have a clean 120v for the circuit.
Sounds like a classic bad mains issue. I had a similar issue with dimming upon load. Turned out to be a bad connector on one of the 120v mains on the power pole. As many above have suggested, call the Power Co. If mains are good, find a better electrician. Beyond that, the rabbit hole is deep.... An isolated ground circuit is helpful, but still shares grounding at the box. I like an a large ungrounded (yeah probably not to code) isolation transformer (larger than the sum of VA or watts of the equipment) to start..... 
None of these people will find anything wrong, because from their point of view there is nothing wrong.

Perspective is everything.  Last year I was checking the electrical in a place in Ixtapa.  Found all kinds of problems from reversed polarity on wall plugs, missing ground wires..........    I asked a local "electrician" if there were any standards they followed when wiring a home.  He asked me "is the fridge cold?  Do the lights come on?  Then what is the problem?"