Solve performance trouble while getting the first cpu perf counter