2 from __future__
import print_function
10 parser = opt.OptionParser()
11 parser.add_option_group(devel)
12 (options, args) = parser.parse_args()
14 if not len(args) == 1:
15 parser.error(
"you must only pass one file as an argument")
18 datafile = os.path.abspath(args[0])
19 if not os.path.isfile(datafile):
20 parser.error(
"%s file does not exist" % datafile)
46 list = pickle.load(ph)
48 for host, data
in list:
50 for options, cpudata
in data:
51 for cpukey
in cpudata:
54 cpustr =
"cpu: " +
str(options[
"cpus"][0])
56 cpustr =
"cpu: " +
str(cpukey)
57 candledata = cpudata[cpukey]
58 for candlekey
in candledata:
59 profsetdata = candledata[candlekey]
60 for profsetkey
in profsetdata:
61 profiledata = profsetdata[profsetkey]
62 for profilekey
in profiledata:
63 stepdata = profiledata[profilekey]
64 for stepkey
in stepdata:
69 print(
"profsetdata: " +
str(profsetkey))
70 print(
"profiler: " +
str(profilekey))
72 for evtdat
in stepdata[stepkey]:
74 except TypeError
as detail:
75 print(
"Data: does not exist for this machine, the server failed to return a valid data structure")
79 if __name__ ==
"__main__":
def optionParse()
Parses name of datafile from the arguments.
def printBenchmarkData(afile)
(this could be cleaned up a little bit) Format of the data file should be:
S & print(S &os, JobReport::InputFile const &f)