high cpu usage before user login
Is there a way to log the system activities, such as errors or cpu usage data, before user login?
I'm using macOS Big Sur 11.0.1 on MacBook Pro 16 inch - 2019. I found the machine is hot and the fan runs at high speed at the login screen, indicating a high CPU usage. This situation continues forever until I logged in, at which time the fan slows down significantly, and the cpu usage is at normal level (below 3%). So everything is fine once logged in.
I guess there should be some abnormal process(es) consuming huge amount of cpu when at the login screen, but I couldn't find any logs during that period because the system log I found starts only after login.
Any helpful information/clues will be appreciated!
MacBook Pro 16″, macOS 11.0