mel + python speed profiler 1.0.0 (maya script)

Compare the speeds between mel and python scripts

License Type:

Freeware

File ID:

33880

File Size:

2.9 KB

Created / Updated:

Aug 18, 2011 / Aug 18, 2011

Owner:

ldunham1   More free downloads from this user See users marketplace items See this users portfolio Send a Private Message

Platforms:

windows

Downloaded:

51

Maya:

2011

Tags:

mel, Rigging, speed, compare, scripting, Python


Modified version of David Lightbown's "dlUtils_Profiler" script which compares the speed between two mel scripts (useful for heavy scripts) www.davidlightbown.com

Simple modification to also compare the speed between two python scripts and between a python and mel script (not perfect but it gives a good idea).
I find it really handy optimizing scripts and rigs.


Usage:
Put script in script directory and call with -
dlUtils_ProfilerLD ( 2, "pyScript", "melScript", 3 ) ;

(where "2" represents the mode to run in (eg: 0 = mel + mel, 1 = python + python, 2 = python + mel))

("pyScript" is the function name of the python script - no brackets)
("melScript" is the proc name of the mel script)

("3" is iterations - amount of times to run each script, more iterations = more accurate results)