Add a performance counter for GUI