Basic framework for profiling screen execution.