def getParameters(): global parameterMap global tauData global functions global threshold global gprof parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() #for key in keys: #print key, parameterMap.get(key) tmp = parameterMap.get("tauData") if tmp != None: tauData = tmp print "Performance data: " + tauData else: print "TAU profile data path not specified... using current directory of profile.x.x.x files." tmp = parameterMap.get("fileName") if tmp != None: functions = tmp print "Output filename: " + functions else: print "Output filename not specified... using " + functions tmp = parameterMap.get("threshold") if tmp != None: threshold = int(tmp) print "Threshold: " + str(threshold) else: print "Threshold not specified... using " + str(threshold)
def getParameters(): global tauData parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() tmp = parameterMap.get("tauData") if tmp != None: tauData = tmp print "Performance data: " + tauData else: print "TAU profile data path not specified... using current directory of profile.x.x.x files."
def getParameters(): global inputData global classifierFilename global mode parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() for key in keys: print key, parameterMap.get(key) mode = parameterMap.get("mode") inputData = parameterMap.get("inputData") classifierFilename = parameterMap.get("classifierFilename")
def load(): print "loading data..." parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() for key in keys: print key, parameterMap.get(key) config = parameterMap.get("config") inApp = parameterMap.get("app") inExp = parameterMap.get("exp") Utilities.setSession(config) trials = Utilities.getTrialsForExperiment(inApp, inExp) print "...done." return trials
def getParameters(): global parameterMap global config global inApp global inExp global fileName print "getting parameters..." parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() for key in keys: print key, parameterMap.get(key) config = parameterMap.get("config") inApp = parameterMap.get("app") inExp = parameterMap.get("exp") fileName = parameterMap.get("fileName") print "...done."
def getParameters(): global tauData global threshold global percentClass parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() tmp = parameterMap.get("tauData") if tmp != None: tauData = tmp print "Performance data: " + tauData else: print "TAU profile data path not specified... using current directory of profile.x.x.x files." tmp = parameterMap.get("threshold1") if tmp != None: threshold = float(tmp) print "Max per call threshold: %f" % (threshold) tmp = parameterMap.get("threshold2") if tmp != None: percentClass = float(tmp) print "Min percent of class: %f" % (percentClass)
def getParameters(): global parameterMap global tauData global iterationPrefix parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() #for key in keys: #print key, parameterMap.get(key) tmp = parameterMap.get("tauData") if tmp != None: tauData = tmp print "Performance data: " + tauData else: print "TAU profile data path not specified... using current directory of profile.x.x.x files." tmp = parameterMap.get("prefix") if tmp != None: iterationPrefix = tmp print "Iteration Prefix: " + iterationPrefix else: print "Iteration Prefix not specified... using", iterationPrefix
def getParameters(): global tauData global threshold global callsCutoff parameterMap = PerfExplorerModel.getModel().getScriptParameters() keys = parameterMap.keySet() tmp = parameterMap.get("tauData") if tmp != None: tauData = tmp print "Performance data: " + tauData else: print "TAU profile data path not specified... using current directory of profile.x.x.x files." tmp = parameterMap.get("threshold") if tmp != None: threshold = float(tmp) tmp = parameterMap.get("callsCutoff") if tmp != None: callsCutoff = float(tmp) print "Max Functions Threshold:\t", threshold print "Max Calls Threshold:\t", callsCutoff