Unity ships with a range of free and powerful profiling tools for analyzing and optimizing your code, both in-Editor and on hardware. The Unity Profiler is the most comprehensive element in this toolbox, but different tools will help you dig deeper into specific parts of the performance of your project on various platforms. Go to documentation for an overview and get our Ultimate guide to profiling Unity games for more context.