measure time and memory to debugging app