Power and Performance Analysis and Optimization