changed perf counter event listener to use weak references.