the output aub file. This helps reducing output file
size greatly but won't produce a file replayable
+ -f, --frame=ID Only dump objects for frame ID
+
-v Enable verbose output
-vv Enable extra verbosity - dumps gtt mappings
file=""
gdb=""
capture_only=""
+frame=""
function add_arg() {
arg=$1
shift
;;
--platform=*)
- platform=${1##-p}
+ platform=${1##--platform=}
add_arg "platform=${platform}"
shift
;;
+ -f)
+ frame=$2
+ add_arg "frame=${frame}"
+ shift 2
+ ;;
+ -f*)
+ frame=${1##-f}
+ add_arg "frame=${frame}"
+ shift
+ ;;
+ --frame=*)
+ frame=${1##--frame=}
+ add_arg "frame=${frame}"
+ shift
+ ;;
--gdb)
gdb=1
shift