4.6 Comparing state between function calls

When investigating an application capture, you can generate a difference report to compare the API state between two function calls to examine what has changed.

Procedure

  1. To compare changes in state between two functions in the capture, use the Ctrl key (Windows or Linux hosts) or Cmd key (OS X hosts) to either:
    • In the Trace view, select two function calls.
    • In the Trace Outline view, select two draw calls.
  2. Right-click on the selected calls, then select Generate Diff from the popup menu.
    Results:

    The report shows the difference between states for the two selected function calls. It is a table of the items that are different, or have changed at some point between the two functions.

    Figure 4-9 Difference Report view


    • Values that have changed but have since reverted to the original value are highlighted in light blue.
    • Values that are different between the two functions are highlighted in red.
    • Where state values are made up of multiple components, for example GL_VIEWPORT, the subcomponents are highlighted individually. In this case, any subcomponents that have not changed are shown with gray text.
  3. The final column in the report, labeled Related functions, lists the numerical id of function calls in the trace that modified the particular state item. Right-click on one of the rows, then select Jump to related function and select a related function from the context menu.
  4. To manually compare sets of changes, you can open multiple difference reports at a time. The results of the state comparison are persistent until the window closes.
Non-Confidential - RELPDF file icon PDF version101545__00_en
Copyright © 2020–2022, 2024 Arm Limited or its affiliates. All rights reserved.