Debugging and Testing in React Native

What is the purpose of profiling in performance optimization?