add code profiling tool to find slow functions