Profiler command line arguments
Reference for arguments to start the with the command line.
Read time 1 minuteLast updated 10 days ago
Set how the Profiler starts from the command line.
If you start your built player or the Unity Editor from the command line (such as the Command Prompt on Windows, Terminal on macOS, Linux shell, or adb for Android), you can pass command line arguments to configure some Profiler settings. For more information about starting Unity from the command line, refer to Command line arguments.
Command line argument | Description |
|---|---|
| Profile the start-up of a player or the Editor. When you use this argument with a player, it has the same effect as building the player with the Autoconnect Profiler setting enabled. When you use this argument with the Editor, it starts collecting and displaying Profiler information in the Profiler window on start-up of the Editor. |
| Stream profile data to a .raw file on startup. This argument works for both players and the Editor. |
| Set how many frames to capture in a profile when streaming to a .raw file on start-up. This argument only works on players. |
| Set a maximum amount of memory in bytes for the Profiler to use at start up (for example, |
| Set a custom player name set when you launch a player from the command line. You can also set this name in the Profiler Preferences window. |