#!/usr/bin/python # perf_graphs.cgi: generate web page showing multiple graphs of benchmarks' performance import cgi, cgitb import common from autotest_lib.tko import perf def multiple_graphs_page(benchmarks): # Generate html for web page showing graphs for all benchmarks # Each graph image is formed by an invocation of 2nd cgi file print "Content-Type: text/html\n" print "
" print "Uncontrolled results!" print "Not using just the controlled benchmarking machines." print "Variants of a platform type (mem size, # disks, etc) may be" print "lumped together." print "Non-default test args may have been applied in some cases." print "No-container cases and whole-machine single-container cases" print "are lumped together." print "" cgitb.enable() form = cgi.FieldStorage() platforms = form.getvalue('platforms', '') machine_names = form.getvalue('machines', '') one_user = form.getvalue('user', '') graph_size = form.getvalue('size', '') test_attributes = perf.parse_test_attr_args(form) benchmarks = perf.usual_benchmarks multiple_graphs_page(benchmarks)