(command.CommandList children: [ (C {(Id.KW_Set set)} {(-o)} {(nounset)}) (C {(Id.KW_Set set)} {(-o)} {(pipefail)}) (C {(Id.KW_Set set)} {(-o)} {(errexit)}) (C {(readonly)} {(Id.Lit_VarLike 'BIGGEST=') (benchmarks/testdata/configure-coreutils)}) (C {(readonly)} {(Id.Lit_VarLike 'ABUILD=') (benchmarks/testdata/abuild)}) (C {(readonly)} {(-a)} {(Id.Lit_VarLike 'RUN_ABUILD=') (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:59) words: [{(bin/oil.py)} {(osh)} {($ Id.VSub_DollarName '$ABUILD')} {(-h)}] ) } ) (C {(readonly)} {(-a)} {(Id.Lit_VarLike 'OSH_PARSE=') (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:80) words: [{(bin/oil.py)} {(osh)} {(--ast-format)} {(none)} {(-n)}] ) } ) (command.ShFunction name: time-bash-run-abuild body: (command.BraceGroup children: [ (command.Sentence child: (command.TimeBlock pipeline:(C {(bash)} {($ Id.VSub_DollarName '$ABUILD')} {(-h)})) terminator: (Token id:Id.Op_Semi val:';' span_id:116) ) ] ) ) (command.ShFunction name: time-run-abuild body: (command.BraceGroup children: [ (command.Sentence child: (command.TimeBlock pipeline: (C { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:RUN_ABUILD span_id:137) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:143) ) ] ) ) (command.ShFunction name: time-parse-abuild body: (command.BraceGroup children: [ (command.Sentence child: (command.TimeBlock pipeline: (C { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:OSH_PARSE span_id:157) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } {($ Id.VSub_DollarName '$ABUILD')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:165) ) ] ) ) (command.ShFunction name: time-parse-biggest body: (command.BraceGroup children: [ (command.Sentence child: (command.TimeBlock pipeline: (C { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:OSH_PARSE span_id:180) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } {($ Id.VSub_DollarName '$BIGGEST')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:188) ) ] ) ) (command.ShFunction name: _cprofile body: (command.BraceGroup children: [ (C {(local)} {(Id.Lit_VarLike 'out=') ($ Id.VSub_Number '$1')}) (C {(shift)}) (command.TimeBlock pipeline: (C {(python)} {(-m)} {(cProfile)} {(-o)} {($ Id.VSub_DollarName '$out')} {(DQ ($ Id.VSub_At '$@'))} ) ) ] ) ) (command.ShFunction name: cprofile-osh-parse body: (command.BraceGroup children: [ (C {(local)} {(Id.Lit_VarLike 'in=') (braced_var_sub token: (Token id:Id.VSub_Number val:1 span_id:242) suffix_op: (suffix_op.Unary op_id: Id.VTest_ColonHyphen arg_word: {($ Id.VSub_DollarName '$ABUILD')} ) ) } ) (C {(local)} {(Id.Lit_VarLike 'out=') (braced_var_sub token: (Token id:Id.VSub_Number val:2 span_id:252) suffix_op: (suffix_op.Unary op_id:Id.VTest_ColonHyphen arg_word:{(abuild.cprofile)}) ) } ) (C {(_cprofile)} {($ Id.VSub_DollarName '$out')} { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:OSH_PARSE span_id:264) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } {($ Id.VSub_DollarName '$in')} ) (C {(ls)} {(-l)} {($ Id.VSub_DollarName '$out')}) ] ) ) (command.ShFunction name: cprofile-parse-abuild body: (command.BraceGroup children: [ (C {(cprofile-osh-parse)} {($ Id.VSub_DollarName '$ABUILD')} {(_tmp/abuild.cprofile)}) ] ) ) (command.ShFunction name: cprofile-parse-biggest body: (command.BraceGroup children: [ (C {(cprofile-osh-parse)} {($ Id.VSub_DollarName '$BIGGEST')} {(_tmp/biggest.cprofile)}) ] ) ) (command.ShFunction name: cprofile-run-abuild body: (command.BraceGroup children: [ (C {(_cprofile)} {(_tmp/abuild-run.cprofile)} { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:RUN_ABUILD span_id:326) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ) ] ) ) (command.ShFunction name: strace-run-abuild body: (command.BraceGroup children: [ (C {(local)} {(Id.Lit_VarLike 'filter=') (SQ (Token id:Id.Lit_Chars val:'execve,wait4' span_id:357))} ) (command.TimeBlock pipeline: (C {(strace)} {(-ff)} {(-e)} {(DQ ($ Id.VSub_DollarName '$filter'))} { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:RUN_ABUILD span_id:376) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ) ) ] ) ) (command.ShFunction name: print-cprofile body: (command.BraceGroup children: [ (C {(local)} {(Id.Lit_VarLike 'profile=') (braced_var_sub token: (Token id:Id.VSub_Number val:1 span_id:410) suffix_op: (suffix_op.Unary op_id: Id.VTest_ColonHyphen arg_word: {(_tmp) (Id.Lit_Slash /) (abuild.cprofile)} ) ) } ) (C {(python)} {(-c)} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:423) (Token id:Id.Lit_Chars val:'import pstats\n' span_id:424) (Token id:Id.Lit_Chars val:'import sys\n' span_id:425) (Token id: Id.Lit_Chars val: 'p = pstats.Stats(sys.argv[1])\n' span_id: 426 ) (Token id:Id.Lit_Chars val:'p.sort_stats("tottime").print_stats()\n' span_id:427) ) } {($ Id.VSub_DollarName '$profile')} ) ] ) ) (command.ShFunction name: abuild-trace body: (command.BraceGroup children: [ (command.Simple words: [ {(Id.KW_Time time)} { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:PARSE_ABUILD span_id:486) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ] more_env: [(env_pair name:_PY_TRACE val:{(abuild.pytrace)} spids:[479])] ) ] ) ) (command.ShFunction name: parse body: (command.BraceGroup children: [ (C {(local)} {(Id.Lit_VarLike 'script=') ($ Id.VSub_Number '$0')}) (command.TimeBlock pipeline: (command.Simple words: [ {(bin/oil.py)} {(osh)} {(--ast-format)} {(none)} {(-n)} {($ Id.VSub_DollarName '$script')} ] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:540) fd: -1 arg_word: {(/dev/null)} ) ] ) ) ] ) ) (command.ShFunction name: execute body: (command.BraceGroup children: [ (C {(local)} {(Id.Lit_VarLike 'script=') ($ Id.VSub_Number '$0')}) (command.TimeBlock pipeline: (C {(bin/oil.py)} {(osh)} {($ Id.VSub_Number '$0')}) ) (C {(ls)} {(-l)} {(-h)} {(Id.Lit_Star '*') (.json)}) ] ) ) (C {(DQ ($ Id.VSub_At '$@'))}) ] )