![]() |
![]() |
Public Member Functions | |
def | __init__ |
def | runPerfTest |
Public Attributes | |
cpu | |
exitcode | |
perfsuiteinstance | |
PerfTestPUTimer | |
PerfTestTimer | |
simpleGenReportArgs |
Definition at line 116 of file cmsPerfSuite.py.
def cmsPerfSuite::PerfSuite::PerfTest::__init__ | ( | self, | |
cpu, | |||
perfsuiteinstance, | |||
simpleGenReportArgs | |||
) |
Definition at line 117 of file cmsPerfSuite.py.
def cmsPerfSuite::PerfSuite::PerfTest::runPerfTest | ( | self | ) |
Definition at line 121 of file cmsPerfSuite.py.
00122 : 00123 # self.PerfTestTotalTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer 00124 # TimerInfo.update({self.simpleGenReportArgs['Name']:{'TotalTime':self.PerfTestTotalTimer}}) #Add the TimeSize timer to the dictionary 00125 if "--pileup" in self.simpleGenReportArgs['cmsdriverOptions']: 00126 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'])) 00127 self.PerfTestPUTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer 00128 TimerInfo[self.simpleGenReportArgs['Name']].update({'PileUpTime':self.PerfTestPUTimer}) #Add the TimeSize timer to the dictionary 00129 00130 else: 00131 self.perfsuiteinstance.logh.write("Launching the %s tests on cpu %s with %s events each\n"%(self.simpleGenReportArgs['Name'],self.cpu,self.simpleGenReportArgs['NumEvents'])) 00132 self.PerfTestTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer 00133 TimerInfo[self.simpleGenReportArgs['Name']].update({'NoPileUpTime':self.PerfTestTimer}) #Add the TimeSize timer to the dictionary 00134 self.perfsuiteinstance.logh.flush() 00135 #Cut and paste in bulk, should see if this works... 00136 self.perfsuiteinstance.printDate() 00137 self.perfsuiteinstance.logh.flush() 00138 self.exitcode=self.perfsuiteinstance.simpleGenReport([self.cpu],**(self.simpleGenReportArgs)) #Returning ReportExit code 00139 #Stop the timers on the threaded PileUp and NoPileUp tests: 00140 if "--pileup" in self.simpleGenReportArgs['cmsdriverOptions']: 00141 self.PerfTestPUTimer.set_end(datetime.datetime.now()) 00142 else: 00143 self.PerfTestTimer.set_end(datetime.datetime.now()) 00144 return self.exitcode 00145 #Options handling
Definition at line 117 of file cmsPerfSuite.py.
Definition at line 123 of file cmsPerfSuite.py.
Definition at line 117 of file cmsPerfSuite.py.
Definition at line 123 of file cmsPerfSuite.py.
Definition at line 123 of file cmsPerfSuite.py.
Definition at line 117 of file cmsPerfSuite.py.