Public Member Functions | |
def | __init__ |
def | runPerfTest |
Public Attributes | |
cpu | |
exitcode | |
perfsuiteinstance | |
PerfTestPUTimer | |
PerfTestTimer | |
simpleGenReportArgs |
Definition at line 124 of file cmsPerfSuite.py.
def cmsPerfSuite::PerfSuite::PerfTest::__init__ | ( | self, | |
cpu, | |||
perfsuiteinstance, | |||
simpleGenReportArgs | |||
) |
Definition at line 125 of file cmsPerfSuite.py.
def cmsPerfSuite::PerfSuite::PerfTest::runPerfTest | ( | self | ) |
Definition at line 129 of file cmsPerfSuite.py.
00130 : 00131 # self.PerfTestTotalTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer 00132 # TimerInfo.update({self.simpleGenReportArgs['Name']:{'TotalTime':self.PerfTestTotalTimer}}) #Add the TimeSize timer to the dictionary 00133 if "--pileup" in self.simpleGenReportArgs['cmsdriverOptions']: 00134 self.perfsuiteinstance.logh.write("Launching the PILE UP %s tests on cpu %s with %s events each\n"%(self.simpleGenReportArgs['Name'],self.cpu,self.simpleGenReportArgs['NumEvents'])) 00135 self.PerfTestPUTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer 00136 TimerInfo[self.simpleGenReportArgs['Name']].update({'PileUpTime':self.PerfTestPUTimer}) #Add the TimeSize timer to the dictionary 00137 00138 else: 00139 self.perfsuiteinstance.logh.write("Launching the %s tests on cpu %s with %s events each\n"%(self.simpleGenReportArgs['Name'],self.cpu,self.simpleGenReportArgs['NumEvents'])) 00140 self.PerfTestTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer 00141 TimerInfo[self.simpleGenReportArgs['Name']].update({'NoPileUpTime':self.PerfTestTimer}) #Add the TimeSize timer to the dictionary 00142 self.perfsuiteinstance.logh.flush() 00143 #Cut and paste in bulk, should see if this works... 00144 self.perfsuiteinstance.printDate() 00145 self.perfsuiteinstance.logh.flush() 00146 self.exitcode=self.perfsuiteinstance.simpleGenReport([self.cpu],**(self.simpleGenReportArgs)) #Returning ReportExit code 00147 #Stop the timers on the threaded PileUp and NoPileUp tests: 00148 if "--pileup" in self.simpleGenReportArgs['cmsdriverOptions']: 00149 self.PerfTestPUTimer.set_end(datetime.datetime.now()) 00150 else: 00151 self.PerfTestTimer.set_end(datetime.datetime.now()) 00152 return self.exitcode 00153 #Options handling
Definition at line 125 of file cmsPerfSuite.py.
Definition at line 131 of file cmsPerfSuite.py.
Definition at line 125 of file cmsPerfSuite.py.
Definition at line 131 of file cmsPerfSuite.py.
Definition at line 131 of file cmsPerfSuite.py.
Definition at line 125 of file cmsPerfSuite.py.