add profiling to examples
add profiling to examples