begin profiling