Made perf counter changes

AppendFormat