A Generalized Software Framework for Accurate and Efficient Management of Performance Goals