ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
dso-stats.Data Class Reference
Collaboration diagram for dso-stats.Data:

Public Member Functions

def __init__ (self, secs=None, name=None)
 
def __iadd__ (self, other)
 
def est_frag (self)
 
def total (self)
 
def add_secs (self, secs)
 
def dump (self, f)
 

Public Attributes

 name
 
 dso
 
 code
 
 puredata
 
 cpp
 
 java
 
 initdata
 
 bss
 
 tbss
 
 frag
 
 ro
 
 rw
 

Detailed Description

Definition at line 70 of file dso-stats.py.

Constructor & Destructor Documentation

◆ __init__()

def dso-stats.Data.__init__ (   self,
  secs = None,
  name = None 
)

Definition at line 71 of file dso-stats.py.

71  def __init__ (self, secs = None, name = None):
72  self.name = name
73  self.dso = 0
74  self.code = 0
75  self.puredata = 0
76  self.cpp = 0
77  self.java = 0
78  self.initdata = 0
79  self.bss = 0
80  self.tbss = 0
81  self.frag = 0
82 
83  self.ro = 0
84  self.rw = 0
85 
86  if secs:
87  self.add_secs (secs)
88  self.est_frag()
89  return
90 
91 

Member Function Documentation

◆ __iadd__()

def dso-stats.Data.__iadd__ (   self,
  other 
)

Definition at line 92 of file dso-stats.py.

92  def __iadd__ (self, other):
93  self.dso += other.dso
94  self.code += other.code
95  self.puredata += other.puredata
96  self.cpp += other.cpp
97  self.java += other.java
98  self.initdata += other.initdata
99  self.bss += other.bss
100  self.tbss += other.tbss
101  self.ro += other.ro
102  self.rw += other.rw
103  self.frag += other.frag
104  return self
105 
106 

◆ add_secs()

def dso-stats.Data.add_secs (   self,
  secs 
)

Definition at line 120 of file dso-stats.py.

120  def add_secs (self, secs):
121  for s, sz in secs:
122  if s in ['.hash', '.dynsym', '.dynstr', '.gnu.version',
123  '.gnu.version_r', '.rel.dyn', '.rel.plt',
124  '.init', '.plt', '.fini', '.init_array', '.fini_array',
125  '.gnu.hash', '.rela.dyn', '.rela.plt',
126  '.data.rel.ro']:
127  self.dso += sz
128  self.ro += sz
129 
130  elif s in ['.text']:
131  self.code += sz
132  self.ro += sz
133 
134  elif s in ['.rodata']:
135  self.puredata += sz
136  self.ro += sz
137 
138  elif s in ['.eh_frame_hdr', '.eh_frame', '.gcc_except_table']:
139  self.cpp += sz
140  self.ro += sz
141 
142  elif s in ['.ctors', '.dtors']:
143  self.cpp += sz
144  self.rw += sz
145 
146 
147  elif s in ['.jcr']:
148  self.java += sz
149  self.rw += sz
150 
151  elif s in ['.dynamic', '.got', '.got.plt', '.plt.got']:
152  self.dso += sz
153  self.rw += sz
154 
155  elif s in ['.data']:
156  self.initdata += sz
157  self.rw += sz
158 
159  elif s in ['.bss']:
160  self.bss += sz
161 
162  elif s in ['.tbss']:
163  self.tbss += sz
164 
165  elif s in ['.comment', '.gnu_debuglink'] or s.startswith ('.debug'):
166  pass
167 
168  else:
169  print ('** Unknown section [%s] **' % s, file=sys.stderr)
170 
171  return
172 
173 
174 

◆ dump()

def dso-stats.Data.dump (   self,
  f 
)

Definition at line 175 of file dso-stats.py.

175  def dump (self, f):
176  kw = {}
177  kw['name'] = _cleanname (self.name)
178  kw['dso'] = _form (self.dso)
179  kw['code'] = _form (self.code)
180  kw['puredata'] = _form (self.puredata)
181  kw['cpp'] = _form (self.cpp)
182  kw['java'] = _form (self.java)
183  kw['initdata'] = _form (self.initdata)
184  kw['frag'] = _form (self.frag)
185  kw['bss'] = _form (self.bss)
186  kw['tbss'] = _form (self.tbss)
187  kw['total'] = _form (self.total())
188  print (format % kw, file=f)
189 

◆ est_frag()

def dso-stats.Data.est_frag (   self)

Definition at line 107 of file dso-stats.py.

107  def est_frag (self):
108  self.frag += _frag (self.ro)
109  self.frag += _frag (self.rw)
110  self.frag += _frag (self.bss)
111  self.frag += _frag (self.tbss)
112  return
113 
114 

◆ total()

def dso-stats.Data.total (   self)

Definition at line 115 of file dso-stats.py.

115  def total (self):
116  return (self.dso + self.code + self.puredata + self.cpp +
117  self.java + self.initdata + self.frag + self.bss + self.tbss)
118 
119 

Member Data Documentation

◆ bss

dso-stats.Data.bss

Definition at line 79 of file dso-stats.py.

◆ code

dso-stats.Data.code

Definition at line 74 of file dso-stats.py.

◆ cpp

dso-stats.Data.cpp

Definition at line 76 of file dso-stats.py.

◆ dso

dso-stats.Data.dso

Definition at line 73 of file dso-stats.py.

◆ frag

dso-stats.Data.frag

Definition at line 81 of file dso-stats.py.

◆ initdata

dso-stats.Data.initdata

Definition at line 78 of file dso-stats.py.

◆ java

dso-stats.Data.java

Definition at line 77 of file dso-stats.py.

◆ name

dso-stats.Data.name

Definition at line 72 of file dso-stats.py.

◆ puredata

dso-stats.Data.puredata

Definition at line 75 of file dso-stats.py.

◆ ro

dso-stats.Data.ro

Definition at line 83 of file dso-stats.py.

◆ rw

dso-stats.Data.rw

Definition at line 84 of file dso-stats.py.

◆ tbss

dso-stats.Data.tbss

Definition at line 80 of file dso-stats.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
FourMomUtils::dump
std::ostream & dump(std::ostream &out, const I4MomIter iBeg, const I4MomIter iEnd)
Helper to stream out a range of I4Momentum objects.
Definition: P4Dumper.h:24