add duration and memory formatter