ATLAS Offline Software
Functions | Variables
library_scraper Namespace Reference

Functions

def runProcess (infile)
 
def chomp (s)
 

Variables

string usage = "parses callgrind.out and creates web pages, and fills database with performance info"
 
 parser = argparse.ArgumentParser(description=usage)
 
string librarypathbase = './'
 
 action
 
 dest
 
 default
 
 help
 
string dbfile = '/afs/cern.ch/atlas/groups/Simulation/rtt/rttProfile.sqlite'
 
 args = parser.parse_args()
 
list dd = []
 
 result = re.search('lib\/lib(.*).so', infile)
 
 packagename = result.group(1)
 
def line = chomp(line)
 

Function Documentation

◆ chomp()

def library_scraper.chomp (   s)

Definition at line 56 of file library_scraper.py.

56  def chomp(s):
57  return s[:-1] if s.endswith('\n') else s
58 

◆ runProcess()

def library_scraper.runProcess (   infile)

Definition at line 47 of file library_scraper.py.

47  def runProcess(infile):
48  p = subprocess.Popen(['./libscrape.sh', infile], stdout=subprocess.PIPE,
49  stderr=subprocess.STDOUT)
50  while(True):
51  retcode = p.poll() #returns None while subprocess is running
52  line = p.stdout.readline()
53  yield line
54  if(retcode is not None):
55  break

Variable Documentation

◆ action

library_scraper.action

Definition at line 37 of file library_scraper.py.

◆ args

library_scraper.args = parser.parse_args()

Definition at line 44 of file library_scraper.py.

◆ dbfile

string library_scraper.dbfile = '/afs/cern.ch/atlas/groups/Simulation/rtt/rttProfile.sqlite'

Definition at line 40 of file library_scraper.py.

◆ dd

list library_scraper.dd = []

Definition at line 46 of file library_scraper.py.

◆ default

library_scraper.default

Definition at line 37 of file library_scraper.py.

◆ dest

library_scraper.dest

Definition at line 37 of file library_scraper.py.

◆ help

library_scraper.help

Definition at line 38 of file library_scraper.py.

◆ librarypathbase

string library_scraper.librarypathbase = './'

Definition at line 36 of file library_scraper.py.

◆ line

def library_scraper.line = chomp(line)

Definition at line 65 of file library_scraper.py.

◆ packagename

library_scraper.packagename = result.group(1)

Definition at line 63 of file library_scraper.py.

◆ parser

library_scraper.parser = argparse.ArgumentParser(description=usage)

Definition at line 33 of file library_scraper.py.

◆ result

library_scraper.result = re.search('lib\/lib(.*).so', infile)

Definition at line 62 of file library_scraper.py.

◆ usage

string library_scraper.usage = "parses callgrind.out and creates web pages, and fills database with performance info"

Definition at line 31 of file library_scraper.py.

library_scraper.runProcess
def runProcess(infile)
Definition: library_scraper.py:47
library_scraper.chomp
def chomp(s)
Definition: library_scraper.py:56
while
while((inf=(TStreamerInfo *) nextinfo()) !=0)
Definition: liststreamerinfos.cxx:13
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567