ATLAS Offline Software
Classes | Functions | Variables
print_auditor_callgraph Namespace Reference

Classes

class  Steps
 

Functions

def parse_log_file (fname, step=Steps.ini)
 

Variables

 __author__
 
 fname
 
 step
 
 gr
 

Function Documentation

◆ parse_log_file()

def print_auditor_callgraph.parse_log_file (   fname,
  step = Steps.ini 
)

Definition at line 31 of file print_auditor_callgraph.py.

31 def parse_log_file(fname, step=Steps.ini):
32  beg_pat = re.compile(r"NameAuditor.*?About to Enter "
33  r"(?P<CompName>.*?) "
34  r"%s Method"%step)
35  end_pat = re.compile(r"NameAuditor.*?Just Exited "
36  r"(?P<CompName>.*?) "
37  r"%s Method"%step)
38 
39  stack = 0
40  graph = []
41 
42  for l in open(fname, 'r'):
43  l = l.strip()
44  beg = re.match(beg_pat, l)
45  end = re.match(end_pat, l)
46  if not (beg or end):
47  continue
48 
49  if beg:
50  component = beg.group('CompName')
51  #print (" "*stack,component)
52  stack += 1
53  graph += [ (stack, component) ]
54 
55  if end:
56  component = end.group('CompName')
57  #print (" "*stack,component)
58  stack -= 1
59 
60  return graph
61 
62 

Variable Documentation

◆ __author__

print_auditor_callgraph.__author__
private

Definition at line 19 of file print_auditor_callgraph.py.

◆ fname

print_auditor_callgraph.fname

Definition at line 67 of file print_auditor_callgraph.py.

◆ gr

print_auditor_callgraph.gr

Definition at line 81 of file print_auditor_callgraph.py.

◆ step

print_auditor_callgraph.step

Definition at line 72 of file print_auditor_callgraph.py.

Trk::open
@ open
Definition: BinningType.h:40
print_auditor_callgraph.parse_log_file
def parse_log_file(fname, step=Steps.ini)
Definition: print_auditor_callgraph.py:31