Add better profiling at each frame.