Added support for frame skipping in the profiler.