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 | Private Attributes
profilereader.FunctionInfo Class Reference
Inheritance diagram for profilereader.FunctionInfo:

Public Member Functions

def __init__
 
def addCallee
 
def addCaller
 
def normalize
 

Public Attributes

 address
 
 calleeList
 
 callerList
 
 countOfFunctPlusChild
 
 countOfFunctPlusChildWithRecursion
 
 fractionInFunctionOnly
 
 fractionInPath
 
 leafCount
 
 name
 

Private Attributes

 __calleeTemp
 
 __callerTemp
 

Detailed Description

Holds the profiling information about one function

Definition at line 5 of file profilereader.py.

Constructor & Destructor Documentation

def profilereader.FunctionInfo.__init__ (   self,
  attrList 
)

Definition at line 8 of file profilereader.py.

8 
9  def __init__(self,attrList):
10  self.address =attrList[0]
11  self.name =os.popen("c++filt "+attrList[-1]).read().strip()
12  self.leafCount = int(attrList[1])
13  self.countOfFunctPlusChildWithRecursion = int(attrList[2])
14  self.countOfFunctPlusChild = int(attrList[3])
15  self.fractionInFunctionOnly = float(attrList[4])
16  self.fractionInPath = float(attrList[5])
17  self.__callerTemp = dict()
self.__calleeTemp = dict()
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16

Member Function Documentation

def profilereader.FunctionInfo.addCallee (   self,
  callee,
  weight 
)

Definition at line 21 of file profilereader.py.

21 
22  def addCallee(self,callee,weight):
self.__calleeTemp.setdefault(callee.address,[0,callee])[0]+=weight
def profilereader.FunctionInfo.addCaller (   self,
  caller,
  weight 
)

Definition at line 18 of file profilereader.py.

18 
19  def addCaller(self,caller,weight):
20  #print caller.name, weight
self.__callerTemp.setdefault(caller.address,[0,caller])[0]+=weight
def profilereader.FunctionInfo.normalize (   self)

Definition at line 23 of file profilereader.py.

23 
24  def normalize(self):
25  self.callerList = list()
26  self.calleeList = list()
27  for caller in self.__callerTemp.keys():
28  (count,_caller) = self.__callerTemp[caller]
29  self.callerList.append((float(count)/self.countOfFunctPlusChildWithRecursion,_caller))
30  for callee in self.__calleeTemp.keys():
31  (count,_callee) = self.__calleeTemp[callee]
32  self.calleeList.append((float(count)/self.countOfFunctPlusChildWithRecursion,_callee))
33  self.callerList.sort()
34  self.callerList.reverse()
35  self.calleeList.sort()
36  self.calleeList.reverse()
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Data Documentation

profilereader.FunctionInfo.__calleeTemp
private

Definition at line 17 of file profilereader.py.

profilereader.FunctionInfo.__callerTemp
private

Definition at line 16 of file profilereader.py.

profilereader.FunctionInfo.address

Definition at line 9 of file profilereader.py.

profilereader.FunctionInfo.calleeList

Definition at line 25 of file profilereader.py.

profilereader.FunctionInfo.callerList

Definition at line 24 of file profilereader.py.

profilereader.FunctionInfo.countOfFunctPlusChild

Definition at line 13 of file profilereader.py.

profilereader.FunctionInfo.countOfFunctPlusChildWithRecursion

Definition at line 12 of file profilereader.py.

profilereader.FunctionInfo.fractionInFunctionOnly

Definition at line 14 of file profilereader.py.

profilereader.FunctionInfo.fractionInPath

Definition at line 15 of file profilereader.py.

profilereader.FunctionInfo.leafCount

Definition at line 11 of file profilereader.py.

profilereader.FunctionInfo.name

Definition at line 10 of file profilereader.py.

Referenced by dirstructure.Directory.__create_pie_image(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), dirstructure.Directory.calcStats(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), utils.StatisticalTest.get_status(), dirstructure.Directory.print_report(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), and Vispa.Views.PropertyView.Property.valueChanged().