Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Profiling Burst job over multiple frames

Discussion in 'Burst' started by mtimson, Nov 4, 2022.

  1. mtimson


    Sep 27, 2022
    Is there a way I can record how long a Burst job takes when it lasts more than one frame? I tried using ProfilerMarker with ProfilerRecorder, and with Recorder, but it only records the time spent in the first frame of the job (I assume since Begin is only getting called in the first frame). I have jobs running algorithms on complex geometry which can last many frames and I am trying to record the total time each job takes. In the Profiler window you can see how many frames the job took and clicking on gives the total time, but I can't find a way to get the same information in a script. Looking in the profiler window is not a practical option when I am trying to compare timing results.

    It would be nice if it is possible to record the time in release builds too, but from searching the forums it doesn't look like that is possible without DateTime support.
    Last edited: Nov 4, 2022
  2. Zuntatos


    Nov 18, 2012
    MartinTilo likes this.