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 125 of file cmsPerfSuite.py.

Constructor & Destructor Documentation

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

Definition at line 126 of file cmsPerfSuite.py.

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

Member Function Documentation

def cmsPerfSuite.PerfSuite.PerfTest.runPerfTest (   self)

Definition at line 130 of file cmsPerfSuite.py.

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

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

Member Data Documentation

cmsPerfSuite.PerfSuite.PerfTest.cpu

Definition at line 127 of file cmsPerfSuite.py.

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

cmsPerfSuite.PerfSuite.PerfTest.exitcode

Definition at line 146 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.perfsuiteinstance

Definition at line 129 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.PerfTestPUTimer

Definition at line 135 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.PerfTestTimer

Definition at line 140 of file cmsPerfSuite.py.

cmsPerfSuite.PerfSuite.PerfTest.simpleGenReportArgs

Definition at line 128 of file cmsPerfSuite.py.

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