docs.unity3d.com
    Show / Hide Table of Contents

    Comparing frames from the same data set

    This workflow explains how to compare two frames from the same data set. In this example, it explains how to compare the median and longest frames in a data set. Comparing the median and longest frames is useful to help understand what is happening in the longest frame that is not happening in an average frame, or what is taking longer than average to complete.

    Step 1: Collect performance data to analyze

    Open the Profile Analyzer window (menu: Window > Analysis > Profile Analyzer) and collect some profiling data. To pull data from an active profiling session, click the Pull Data button. This pulls in the current set of available frames from the Profiler. If you don't have an active profile session, click the Open Profiler Window button, then load or record some data.

    For more information on how to collect data, see the workflow documentation on Collecting and viewing data.

    Step 2: Open Compare view

    Click the Compare button in the toolbar to switch to the Compare View.

    Step 3: Select the median and longest frames

    1. In the Frame Control pane, right click on the top graph and choose Select Median Frame from the context menu.
    2. Next, right click on the lower graph and choose Select Longest Frame in the context menu.

    The Profile Analyzer then analyzes the two frames and displays the data for the median and longest frames:

    Data comparison on same set
    The Profile Analyzer window with the median and longest frames of the same data set selected

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023