I recently upgraded to Mojave in order to install a new SSD. Since then, I intermittently experience an issue where every now the CPU seems to freeze for a split second, a few times within a second or two. The result is that the mouse appears to jump, so it's hard to click on things. Then it's fine for a few seconds, then comes back.
I think the same problem is also responsible for choppy audio on Google Hangouts sometimes.
Rebooting solves the problem. On Sierra, I would reboot less than once a month. Now it's more like once a day.
Is there a way to find the culprit? Nothing stands out (>10%) in Activity Monitor. When VS Code is open, the problem seems to be worse, but there's nothing showing up in Code's "Process Explorer".