add profiling code
request frame button