Live Game Profiler
Last updated
You can export a profile of server CPU usage to debug lag. It provides a breakdown of all compute activity per frame.
To generate a profile head into a game server and in the Developer Console [F1] type:
profile server 5 falseThis will run and upload a profile to the create dashboard. Once it is ready the download link will be sent in your console. You can also find all server profiles via the "Artifacts" page on create dashboard.
The 5 is to record for 5 seconds. The false is to disable deep callstacks.
Once you have downloaded your server profile you can load it in the Unity editor.
Go to Window > Analysis > Profiler (Ctrl+7)
Click the load binary profiling information button at the top right and select the downloaded .raw
To learn more about how to use the profiler head to Unity's Profiler docs.
Last updated