As far as I know WindowServer process is used by all apps to draw windows that we see. And a lot of people are reporting a problem when their WindowServer is using a lot of CPU. Is there any way to find out what process is interacting with WindowServer besides looking at the precesses at the ActivityMonitor, shutting them down and looking at the result?
MacOS – Troubleshooting high CPU activity in the WindowServer process
cpumacos
Related Question
- Low Battery Performance – Activity Monitor Shows Faults in CPU statistics
- MacOS – What causes the UserEventAgent to run with 100% CPU usage
- MacOS – Is it possible to identify what the parent program/app is from a running process
- MacOS – MacBook Pro high CPU with external monitors
- MacOS – WindowServer high CPU usage, spikes when moving cursor on M1 MacBook Big Sur
Best Answer
Check out the man page for perfdiagnose. This tool is purpose-made for diagnosing exactly this sort of issue, where a simpler tool like Activity Monitor can only show you symptoms.
The output from perfdiagnose is not intended for end-users, but for developers and teams at Apple. If you're not able to make any sense of the logs it produces, your best bet is to attach them to a bug report submitted to Apple.