A lib that helps you write performance counter easily