The Profiler window is an incredibly powerful tool that provides detailed information on how your project is performing. During runtime, you can find information about CPU usage, memory, physics, network usage, and
more.
If your project is having problems, such as a low frame rate or high memory usage, Profiler can show you what is happening. The Profiler shows you what is happening and helps you plan to fix it.
Work with the Profiler window

With the Profiler you can get to know different aspects of your project. Performance, e.g. B. How much memory is used, how much CPU time
is used for various tasks and how often are physical calculations
carried out? Most importantly, you can use this data to help
Identify performance problems.
Open the Profiler window by selecting the menu bar.
Click Window> Analysis> Profiler or Ctrl + 7
Windows or Cmd + 7 on Mac.

Run your project after opening it in the editor window. The Profiler can start collecting performance data from your project.

On the left side of the Profiler window you will see a column of Profilers. Each of these options shows information about a specific aspect of your project. There are different Profilers for CPU Usage, Graphics Processing Unit
(GPU) usage, rendering, memory usage, audio, physics and network.

The lower half of the Profiler window shows detailed information from the currently selected Profiler. Select a profiler on the left. For example, select the CPU.
The lower half of the Profiler window is now filled
with additional information (Figure 03).
The data shown depends on the selected profiler. For example when
When you select the storage profiler, it will show which assets are involved.
Use the most memory and the total amount of memory used. this
is useful for determining which asset is costing the most resources and
helps you determine the exact cause (s) of performance problems.
The information in the Profiler window may be a bit much at first. It is recommended to start with one or two profilers depending on the problem you are facing. For example, if your project is running slowly, CPU usage is a great place to start.
To remove a profiler from the window, select the profiler from the "Modules" drop-down list and enable / disable the profiler you are using.
Profiler controls
The Profiler window contains a few controls that you can use to start and stop profiling. Activate and deactivate the profiling functions and look at the data that the profiler has collected.
Record: Records performance for further debugging and reviewing.
Deep profiles: When this option is enabled, the Profiler can begin to profile all script codes. This enables you
knowing exactly where time is being spent in your project's code.
Note: Deep Profile takes up a lot of memory. -> Your game runs much slower.
Play mode: In this drop-down list you can select one of the two options: Profile in Playmode or in Editor.
Clear on Play: Erases data every time you play your project.
Clear: Deletes collected information from all profilers.
Load: Loads binary profile information from a file. Shift-clicking appends the information to the current information in the Profiler.
Save: Saves the current profile information in a binary file
Arrows: Steps forward and backward through frames in the captured data in the profiler.
A typical use of these controls is to create a profile for your project. Capture a performance issue and once you've done that, stop profiling. Gather the data you need. You can then use the timeline controls to
go through the data until you reach a frame that represents the performance problem.

Once you become familiar with the Profiler, you can investigate the performance issues that may arise in your project. Not only does it provide valuable information, but it also gives you the option to save the recorded profile information
Performance data. This allows you and your team members to localize the performance problems.
Originally posted on 2020-03-23 17:24:00.
