PerfCounter: implement current instance tracking for MemoryAppender