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.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Question How does the min column in the Profile Analyzer work?

Discussion in 'Profiler Previews' started by TJHeuvel-net, Nov 14, 2022.

  1. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    751
    upload_2022-11-14_11-10-37.png

    I'm trying to decide between two approaches for a job (IJobFilter or IJobParallelFor, because filter isnt parallel). But im confused about how the columns work in the analyser.

    Here i see that one job spent 0.057ms executing, however in the analyser the min value is much higher. Does the minimum aggregate all calls from a single frame?
     
  2. lyndon_unity

    lyndon_unity

    Unity Technologies

    Joined:
    Nov 2, 2017
    Posts:
    52
    Yes the min value in the profile analyzer marker view is the minimum value over all frames for the "aggregate time of all occurrences of the marker in the frame (and over all the selected threads) "

    So in your case it would be the total cost of all the calls to the job across all job worker threads in a single frame.

    The "Individual Min" in the Marker Summary section shows the min for an individual occurrence.