how to create performance monitor using JS decorators