We recently released an update to the MicroProfiler tool. Now you can now profile server-side code on live servers! This should make it easier to diagnose performance issues and improve the responsiveness of your game. This is similar to profiling client code except that you need to pro-actively start recording performance and the output will be a one-time dump of server performance information that you can view through a web page.
To use the Server MicroProfiler:
- Join a game for which you have edit access
- Open the Developer Console by chatting “/console”
- Switch to the “MicroProfiler” tab
- Adjust the frames per second and seconds to record as needed
- Click “Start Recording”
You will see the output path for the generated HTML file. Navigate to that file and open it in your browser to see a detailed breakdown.
Let us know what you think! Thanks to @24RightAngles for implementing this. Note that we will be adding documentation to the Developer Hub in the future.