Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to measure key performance information for MayaUsd Vp2RenderDelegate. #415

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

williamkrick
Copy link
Contributor

This script measures time taken for key operations in Maya using Vp2RenderDelegate for the purpose of automated performance testing.

The script is measuring first frame time, consolidation time, tumble performance, playback performance, selection performance and file new performance.

An example of calling the script in Maya:

import mayaUsd.lib.analyticMayaUsdPerformance as analyticMayaUsdPerformance

cameraTranslate = [-13000, -2000, 6000]
cameraRotate = [60, 0, -90]
print( analyticMayaUsdPerformance.analyticMayaUsdPerformance().run('myFile.usd', cameraTranslate, cameraRotate, 1, 20) )

The script returns JSON data. An example output looks like:

{
   "select_all":{
      "time":0.5999999999999943,
      "memory":[
         130956.921875,
         2811.640625
      ]
   },
   "selected":{
      "consolidate":{
         "time":0.030000000000001137,
         "memory":[
            130956.921875,
            2811.640625
         ]
      },
      "playback":{
         "time":0.5,
         "end_frame":20.0,
         "start_frame":1.0,
         "memory":[
            130956.921875,
            2812.078125
         ]
      },
      "tumble":{
         "time":0.480000000000004,
         "frame_count":19,
         "memory":[
            130956.921875,
            2815.6484375
         ]
      }
   },
   "not_selected":{
      "consolidate":{
         "time":0.46999999999999886,
         "memory":[
            130956.921875,
            2550.30078125
         ]
      },
      "playback":{
         "time":0.35999999999999943,
         "end_frame":20.0,
         "start_frame":1.0,
         "memory":[
            130956.921875,
            2554.546875
         ]
      },
      "tumble":{
         "time":0.3299999999999983,
         "frame_count":19,
         "memory":[
            130956.921875,
            2554.51171875
         ]
      }
   },
   "new_scene":{
      "time":1.1599999999999966,
      "memory":[
         130956.921875,
         2286.1953125
      ]
   },
   "first_frame":{
      "time":2.549999999999997,
      "memory":[
         130956.921875,
         2242.53125
      ]
   },
   "maya_startup":{
      "memory":[
         130956.921875,
         721.52734375
      ]
   }
}

@williamkrick williamkrick added adsk Related to Autodesk plugin vp2renderdelegate Related to VP2RenderDelegate labels Apr 9, 2020
Copy link
Contributor

@mattyjams mattyjams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, looks good to me.

We have some performance tests that generate JSON metrics files that look very similar:

But sadly these are still only run internally at Pixar. It would be great when we do get them running here to see if there's a way to unify how we generate these profiling stats files and how they're validated during tests.

@kxl-adsk kxl-adsk merged commit 34c773a into dev Apr 14, 2020
@kxl-adsk kxl-adsk deleted the krickw/MAYA-104143/performance_test_script branch April 14, 2020 18:23
ppt-adsk pushed a commit that referenced this pull request May 30, 2023
HYDRA-329: remove qt dependency [Part 1]

Changes:
Remove qt related stuff from build scripts. There'll be Part2 to remove qt from ecg-maya-usd

Impacts:
Building of maya-hydra should not be broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants