At least on the time performance side, I basically do the same thing most of the robocoders do: logging logs to the console. On the memory side, though, it is a nice question. :)