CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
cmsPerfSuite.PerfSuite.PerfTest Class Reference

Public Member Functions

def __init__
 
def runPerfTest
 

Public Attributes

 cpu
 
 exitcode
 
 perfsuiteinstance
 
 PerfTestPUTimer
 
 PerfTestTimer
 
 simpleGenReportArgs
 

Detailed Description

Definition at line 124 of file cmsPerfSuite.py.

Constructor & Destructor Documentation

def cmsPerfSuite.PerfSuite.PerfTest.__init__ (   self,
  cpu,
  perfsuiteinstance,
  simpleGenReportArgs 
)

Definition at line 125 of file cmsPerfSuite.py.

126  def __init__(self,cpu,perfsuiteinstance,**simpleGenReportArgs):
127  self.cpu=cpu
128  self.simpleGenReportArgs=simpleGenReportArgs
self.perfsuiteinstance=perfsuiteinstance

Member Function Documentation

def cmsPerfSuite.PerfSuite.PerfTest.runPerfTest (   self)

Definition at line 129 of file cmsPerfSuite.py.

References cmsPerfSuite.PerfSuite.simpleGenReportThread.cpu, cmsPerfSuite.PerfSuite.PerfTest.cpu, cmsPerfSuite.PerfSuite.simpleGenReportThread.simpleGenReportArgs, and cmsPerfSuite.PerfSuite.PerfTest.simpleGenReportArgs.

130  def runPerfTest(self):
131 # self.PerfTestTotalTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer
132 # TimerInfo.update({self.simpleGenReportArgs['Name']:{'TotalTime':self.PerfTestTotalTimer}}) #Add the TimeSize timer to the dictionary
133  if "--pileup" in self.simpleGenReportArgs['cmsdriverOptions']:
134  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']))
135  self.PerfTestPUTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer
136  TimerInfo[self.simpleGenReportArgs['Name']].update({'PileUpTime':self.PerfTestPUTimer}) #Add the TimeSize timer to the dictionary
137 
138  else:
139  self.perfsuiteinstance.logh.write("Launching the %s tests on cpu %s with %s events each\n"%(self.simpleGenReportArgs['Name'],self.cpu,self.simpleGenReportArgs['NumEvents']))
140  self.PerfTestTimer=PerfSuiteTimer(start=datetime.datetime.now()) #Start the TimeSize timer
141  TimerInfo[self.simpleGenReportArgs['Name']].update({'NoPileUpTime':self.PerfTestTimer}) #Add the TimeSize timer to the dictionary
142  self.perfsuiteinstance.logh.flush()
143  #Cut and paste in bulk, should see if this works...
144  self.perfsuiteinstance.printDate()
145  self.perfsuiteinstance.logh.flush()
146  self.exitcode=self.perfsuiteinstance.simpleGenReport([self.cpu],**(self.simpleGenReportArgs)) #Returning ReportExit code
147  #Stop the timers on the threaded PileUp and NoPileUp tests:
148  if "--pileup" in self.simpleGenReportArgs['cmsdriverOptions']:
149  self.PerfTestPUTimer.set_end(datetime.datetime.now())
150  else:
151  self.PerfTestTimer.set_end(datetime.datetime.now())
152  return self.exitcode
153 
#Options handling
#define update(a, b)

Member Data Documentation

cmsPerfSuite.PerfSuite.PerfTest.cpu

Definition at line 126 of file cmsPerfSuite.py.

Referenced by cmsPerfSuite.PerfSuite.PerfTest.runPerfTest().

cmsPerfSuite.PerfSuite.PerfTest.exitcode

Definition at line 145 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.perfsuiteinstance

Definition at line 128 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.PerfTestPUTimer

Definition at line 134 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.PerfTestTimer

Definition at line 139 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.simpleGenReportArgs

Definition at line 127 of file cmsPerfSuite.py.

Referenced by cmsPerfSuite.PerfSuite.PerfTest.runPerfTest().