Draft: Add complexity script, add basop and skip_build arguments to script
- Requested reviewers: @kiene @norvell @pihlajakuja
Reason why this change is needed
Currently the IvasBuildAndRunChecks.py
script cannot be used for basop builds for complexity measurements. The script also always replaces the builds it creates. These functionalities are added.
Description of the change
New arguments to IvasBuildAndRunChecks.py
. --basop
instruments and builds basop version of the codec. --skip_build
skips the instrumentation and building phase in the script.
This functionality would be helpful when running the complexity script smoke_test_complexity_basop.sh
(also added in this MR, the script is a slight modification of the already existing complexity script). With the current basop status, it would be beneficial to run the complexity script with a float encoder and an instrumented basop decoder. Without the --skip_build
argument, this is a bit cumbersome, as the IvasBuildAndRunChecks.py
overwrites the instrumented builds. The --basop
argument would be useful later when both the encoder and decoder basop versions could be instrumented correctly and run as part of the script. (Currently the encoder and decoder would be needed to build manually for each, as the encoder requires some more work.)