Loading ci/complexity_measurements/genWebpageData.py +13 −6 Original line number Diff line number Diff line Loading @@ -204,7 +204,7 @@ FILE_DATA = { "var_name": "Graphs_WMOPS", "elem_name": "wmops_worstcase", "description": "Worst Case WMOPS", "filename": "graphs_wmops_flc.js", "filename": "graphs_wmops_flc{}.js", "references": { "3xEVS": REF_WMOPS_3EVS, "6xEVS": REF_WMOPS_6EVS, Loading @@ -215,7 +215,7 @@ FILE_DATA = { "var_name": "Graphs_ROM", "elem_name": "rom_worstcase", "description": "ROM", "filename": "graphs_rom_flc.js", "filename": "graphs_rom_flc{}.js", "references": { "requirementRom": 0, }, Loading @@ -224,7 +224,7 @@ FILE_DATA = { "var_name": "Graphs_RAM", "elem_name": "ram_worstcase", "description": "Worst Case RAM", "filename": "graphs_ram_flc.js", "filename": "graphs_ram_flc{}.js", "references": { "requirementRam": 0, }, Loading @@ -233,14 +233,19 @@ FILE_DATA = { "var_name": "Graphs_WMOPS_perOP", "elem_name": "wmops_worstcase_per_op", "description": "Worst Case WMOPS per OP", "filename": "graphs_wmops_flc_perOP.js", "filename": "graphs_wmops_flc_perOP{}.js", "references": {}, }, } def main( wmops_log, wmops_per_op_log, rom_log, ram_log, wmops_per_op_log_for_comparison wmops_log, wmops_per_op_log, rom_log, ram_log, wmops_per_op_log_for_comparison, suffix, ): FILE_DATA["wmops"]["log_file"] = wmops_log FILE_DATA["wmops_per_op"]["log_file"] = wmops_per_op_log Loading Loading @@ -286,7 +291,7 @@ def main( displays=displays, ticks=ticks, ) with open(data["filename"], "w") as f: with open(data["filename"].format(suffix), "w") as f: print(js_string, file=f) Loading Loading @@ -449,6 +454,7 @@ if __name__ == "__main__": parser.add_argument("rom_log") parser.add_argument("ram_log") parser.add_argument("--wmops_per_op_log_for_comparison", default=None) parser.add_argument("--suffix", default="") args = parser.parse_args() Loading @@ -458,4 +464,5 @@ if __name__ == "__main__": args.rom_log, args.ram_log, args.wmops_per_op_log_for_comparison, args.suffix, ) ci/complexity_measurements/getWmops.sh +4 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,8 @@ # accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and # the United Nations Convention on Contracts on the International Sales of Goods. set -euxo pipefail function usage { echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode{full(default)|mem_only}\" \"repo{float(default)|basop}\" [wmops_ref_logfile]" exit 1 Loading Loading @@ -136,9 +138,9 @@ for suffix in $split_suffixes; do # generate javascript code from log files # pass the ref log for comparison only if arg is given if [ "$wmops_ref_logfile" != "" ]; then python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} --wmops_per_op_log_for_comparison $wmops_ref_logfile python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} --suffix ${suffix} --wmops_per_op_log_for_comparison $wmops_ref_logfile else python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} --suffix ${suffix} fi done Loading Loading
ci/complexity_measurements/genWebpageData.py +13 −6 Original line number Diff line number Diff line Loading @@ -204,7 +204,7 @@ FILE_DATA = { "var_name": "Graphs_WMOPS", "elem_name": "wmops_worstcase", "description": "Worst Case WMOPS", "filename": "graphs_wmops_flc.js", "filename": "graphs_wmops_flc{}.js", "references": { "3xEVS": REF_WMOPS_3EVS, "6xEVS": REF_WMOPS_6EVS, Loading @@ -215,7 +215,7 @@ FILE_DATA = { "var_name": "Graphs_ROM", "elem_name": "rom_worstcase", "description": "ROM", "filename": "graphs_rom_flc.js", "filename": "graphs_rom_flc{}.js", "references": { "requirementRom": 0, }, Loading @@ -224,7 +224,7 @@ FILE_DATA = { "var_name": "Graphs_RAM", "elem_name": "ram_worstcase", "description": "Worst Case RAM", "filename": "graphs_ram_flc.js", "filename": "graphs_ram_flc{}.js", "references": { "requirementRam": 0, }, Loading @@ -233,14 +233,19 @@ FILE_DATA = { "var_name": "Graphs_WMOPS_perOP", "elem_name": "wmops_worstcase_per_op", "description": "Worst Case WMOPS per OP", "filename": "graphs_wmops_flc_perOP.js", "filename": "graphs_wmops_flc_perOP{}.js", "references": {}, }, } def main( wmops_log, wmops_per_op_log, rom_log, ram_log, wmops_per_op_log_for_comparison wmops_log, wmops_per_op_log, rom_log, ram_log, wmops_per_op_log_for_comparison, suffix, ): FILE_DATA["wmops"]["log_file"] = wmops_log FILE_DATA["wmops_per_op"]["log_file"] = wmops_per_op_log Loading Loading @@ -286,7 +291,7 @@ def main( displays=displays, ticks=ticks, ) with open(data["filename"], "w") as f: with open(data["filename"].format(suffix), "w") as f: print(js_string, file=f) Loading Loading @@ -449,6 +454,7 @@ if __name__ == "__main__": parser.add_argument("rom_log") parser.add_argument("ram_log") parser.add_argument("--wmops_per_op_log_for_comparison", default=None) parser.add_argument("--suffix", default="") args = parser.parse_args() Loading @@ -458,4 +464,5 @@ if __name__ == "__main__": args.rom_log, args.ram_log, args.wmops_per_op_log_for_comparison, args.suffix, )
ci/complexity_measurements/getWmops.sh +4 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,8 @@ # accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and # the United Nations Convention on Contracts on the International Sales of Goods. set -euxo pipefail function usage { echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode{full(default)|mem_only}\" \"repo{float(default)|basop}\" [wmops_ref_logfile]" exit 1 Loading Loading @@ -136,9 +138,9 @@ for suffix in $split_suffixes; do # generate javascript code from log files # pass the ref log for comparison only if arg is given if [ "$wmops_ref_logfile" != "" ]; then python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} --wmops_per_op_log_for_comparison $wmops_ref_logfile python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} --suffix ${suffix} --wmops_per_op_log_for_comparison $wmops_ref_logfile else python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} python3 ci/complexity_measurements/genWebpageData.py ${log_wmops_all_split} ${wmopsFilenameFlc_split} ${log_rom_all_split} ${log_ram_all_split} --suffix ${suffix} fi done Loading