All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ana.Step Class Reference

Public Member Functions

def __init__
 
def toString
 
def diff
 

Public Attributes

 name
 
 type
 
 protocol
 
 data
 
 usage
 
 cpu
 
 events
 
 user
 
 system
 
 ellapsed
 

Detailed Description

Definition at line 18 of file ana.py.

Constructor & Destructor Documentation

def ana.Step.__init__ (   self)

Definition at line 19 of file ana.py.

19 
20  def __init__(self):
21  self.name=''
22  self.type=''
23  self.protocol = ''
24  self.data=''
25  self.usage=None
26  self.cpu = 0.
27  self.events = 0
28  self.user=0.
29  self.system=0.
30  self.ellapsed = 0.
usage
Definition: ana.py:24
user
Definition: ana.py:27
ellapsed
Definition: ana.py:29
name
Definition: ana.py:20
def __init__
Definition: ana.py:19
cpu
Definition: ana.py:25
events
Definition: ana.py:26
data
Definition: ana.py:23
system
Definition: ana.py:28
protocol
Definition: ana.py:22
type
Definition: ana.py:21

Member Function Documentation

def ana.Step.diff (   self,
  other 
)

Definition at line 36 of file ana.py.

36 
37  def diff(self,other):
38  e1 = self.ellapsed/self.events
39  e2 = other.ellapsed/other.events
40  e3 = (self.user+self.system)/self.events
41  e4 = (other.user+other.system)/other.events
42  s1 = '%8.2e %8.2e'%(e1-e2,e3-e4)
return s1
user
Definition: ana.py:27
ellapsed
Definition: ana.py:29
events
Definition: ana.py:26
def diff
Definition: ana.py:36
system
Definition: ana.py:28
def ana.Step.toString (   self)

Definition at line 31 of file ana.py.

31 
32  def toString(self):
33  s1 = '%-8s %-8s %-12s %7d %8.2f %8.2f %8.2f %7.2f '%(self.type,self.protocol,self.name,self.events,self.ellapsed,self.user,self.system,self.cpu)
34  s2 = '%8.2e %8.2e %8.2e'%(self.ellapsed/self.events,self.user/self.events,self.system/self.events)
35  return s1+s2
user
Definition: ana.py:27
ellapsed
Definition: ana.py:29
name
Definition: ana.py:20
cpu
Definition: ana.py:25
def toString
Definition: ana.py:31
events
Definition: ana.py:26
system
Definition: ana.py:28
protocol
Definition: ana.py:22
type
Definition: ana.py:21

Member Data Documentation

ana.Step.cpu

Definition at line 25 of file ana.py.

ana.Step.data

Definition at line 23 of file ana.py.

ana.Step.ellapsed

Definition at line 29 of file ana.py.

ana.Step.events

Definition at line 26 of file ana.py.

ana.Step.name

Definition at line 20 of file ana.py.

ana.Step.protocol

Definition at line 22 of file ana.py.

ana.Step.system

Definition at line 28 of file ana.py.

ana.Step.type

Definition at line 21 of file ana.py.

ana.Step.usage

Definition at line 24 of file ana.py.

ana.Step.user

Definition at line 27 of file ana.py.


The documentation for this class was generated from the following file: