Profiling tool for UdonSharp
- Download and install the project from my VCC Listing
- Add the prefab from the package's sample folder into you scene, be sure not to rename it.
- Enable the profiler by going to
Tools/UdonSharpProfiler/Enable
(click again to disable, having it enabled does make your udon programs slower). - Enter play mode or play through the VRChat client.
- Press
O
to start recording. - Press
P
to stop recording. Be patient after pressing, depending on the size, it might take a couple seconds to process all the events. - Create a trace file by going to
Tools/UdonSharpProfiler/Save Unity
Log orTools/UdonSharpProfiler/Save VRChat Log
- Load the file into Perfetto.
By default it won't be recording until you press O
. You can tell it to start recording as soon as the game starts but toggling the recording
boolean on the Profiler game object.