creating a performance monitor using javascript decorators