# check if it has the target symbol if ! grep -q "${testsym}""${perfout}" then echo"${mode} annotate [Failed: missing target symbol]" cat"${perfout}"
err=1
return fi
# check if it has the disassembly lines if ! grep -q "${disasm_regex}""${perfout}" then echo"${mode} annotate [Failed: missing disasm output from default disassembler]"
err=1
return fi
# check again with a target symbol name if [ "x${mode}" == "xBasic" ] then
perf annotate --no-demangle -i "${perfdata}""${testsym}" 2> /dev/null > "${perfout}" else
perf annotate --no-demangle -i - "${testsym}" 2> /dev/null < "${perfdata}" > "${perfout}" fi
if ! head -250 "${perfout}"| grep -q -m 3 "${disasm_regex}" then echo"${mode} annotate [Failed: missing disasm output when specifying the target symbol]"
err=1
return fi
# check one more with external objdump tool (forced by --objdump option) if [ "x${mode}" == "xBasic" ] then
perf annotate --no-demangle -i "${perfdata}" --percent-limit 10 --objdump=objdump 2> /dev/null > "${perfout}" else
perf annotate --no-demangle -i - "${testsym}" --percent-limit 10 --objdump=objdump 2> /dev/null < "${perfdata}" > "${perfout}" fi if ! grep -q -m 3 "${disasm_regex}""${perfout}" then echo"${mode} annotate [Failed: missing disasm output from non default disassembler (using --objdump)]"
err=1
return fi echo"${mode} annotate test [Success]"
}
test_basic Basic
test_basic Pipe
cleanup
exit $err
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.