Houdini -profile-startup through ayon


Hi! How to run the houdini through ayon but still run the -profile-startup commandline?
We wanted to troubleshoot the houdini startup times through houdini

The snapshot shared method is not working

Setting that works for me?


The arguments, e.g. at ayon+settings://applications/applications/houdini/variants/4/arguments:

[
  "-profile-startup=E:/performance.hperf"
]

The file gets written by Houdini as soon as the UI became visible.


Aside of that. If you use the ayon-applications addon from latest develop (or upcoming 1.0.0+) it will come with a Debug Terminal launcher action which makes it trivial to launch e.g. Houdini from command line within the AYON environment. There you could e.g. manually trigger Houdini with the relevant command line arguments.

It was added here: Add a Debug Terminal launcher which allows to launch a terminal into environment of an application by BigRoy · Pull Request #12 · ynput/ayon-applications · GitHub

2 Likes

Profile Houdini using the AYON launcher “Terminal” action

For completeness, here’s “easy mode” using the “Terminal” launcher action:

image

image

And then in that command line run:

houdini -profile-startup=debug.hperf

It will launch houdini with startup profiling enabled. The file will be stored in the working directory (the one from the command line) after launch finished.

Then in Houdini open the Performance Monitor pane and load the .hperf file.
image

On my extreeeeemely slow machine and server the timings will be extreme but it can show you e.g. how long the startup python script took of ayon-houdini, etc.

Do note that, as always when profiling, that the fact that a profiler is enabled MAY increase the timing and hence increase the time taken to launch.

1 Like

Awesome! Thanks again Roy!