How to find the source of lag spikes at random times

I keep getting lag spikes, and it appears to be related to the GUI? How do I trace it back?

My first suspects were the UIStrokeScale script by batteryday and WindShake by boatbomber.