I have a game server that handles events 10 times per second. However sometimes it starts choking and lagging behind up to 0.5-1 second.
How can I debug whats going on? I need to see what portion of my code is causing problems… Is there a profiler or something?