How to obtain the CPU usage rate of the current plugin under MacOS?

How to obtain the CPU usage rate of the current plugin under MacOS?