add performance monitor (time and memory)