Add profiling for performance check