Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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:
    838
    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:
    66
    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.