save duration and memory in debugBar
refactor debugBar plugin