13.05.2012, 04:10
Also, log EVERYTHING and use some way of parsing those logs into something that you can use to check for patterns. Does the espike happen during a certain loop or timer? Does a frequently-called callback have a ton of useless crap in it? etc.