Gaudi Framework, version v23r8

Home   Generated: Fri May 31 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
gaudirun Namespace Reference

Classes

class  FakeModule
 

Functions

def getArgsWithoutoProfilerInfo
 
def option_cb
 

Variables

tuple parser OptionParser(usage = "%prog [options] <opts_file> ...")
 
string help "do not run the application, just parse option files"
 
string metavar "FILE"
 
string type "string"
 
string dest "post_options"
 
 tcmalloc False,
 
string profilerName ''
 
string profilerOutput ''
 
string profilerExtraOptions ''
 
list preload []
 
 ncpus None)
 
tuple sys_cpus cpu_count()
 
string s "Invalid value : --ncpus : only %i cpus available"
 
 level logging.INFO
 
tuple root_logger logging.getLogger()
 
list to_load
 
list args [ a for a in sys.argv if a != '-T' and not '--tcmalloc'.startswith(a) ]
 
string profilerExecName ""
 
string igprofPerfOptions "-d -pp -z -o igprof.pp.gz"
 
string profilerOptions ""
 
tuple toolname profilerName.replace('valgrind','')
 
string outoption "--log-file"
 
tuple profilerPath distutils.spawn.find_executable(profilerExecName)
 
list arglist [profilerPath]
 
tuple c gaudimain()
 
list options [ "importOptions(%r)" % f for f in args ]
 
tuple optlines list(opts.options)
 
dictionary g {}
 
dictionary l {}
 

Function Documentation

def gaudirun.getArgsWithoutoProfilerInfo (   args)
Remove from the arguments the presence of the profiler and its output in
order to relaunch the script w/o infinite loops.

>>> getArgsWithoutoProfilerInfo(['--profilerName', 'igprof', 'myopts.py'])
['myopts.py']

>>> getArgsWithoutoProfilerInfo(['--profilerName=igprof', 'myopts.py'])
['myopts.py']

>>> getArgsWithoutoProfilerInfo(['--profilerName', 'igprof', '--profilerExtraOptions', 'a b c', 'myopts.py'])
['myopts.py']

>>> getArgsWithoutoProfilerInfo(['--profilerName', 'igprof', '--options', 'a b c', 'myopts.py'])
['--options', 'a b c', 'myopts.py']

Definition at line 3 of file gaudirun.py.

3 
5  """
6  Remove from the arguments the presence of the profiler and its output in
7  order to relaunch the script w/o infinite loops.
8 
9  >>> getArgsWithoutoProfilerInfo(['--profilerName', 'igprof', 'myopts.py'])
10  ['myopts.py']
11 
12  >>> getArgsWithoutoProfilerInfo(['--profilerName=igprof', 'myopts.py'])
13  ['myopts.py']
14 
15  >>> getArgsWithoutoProfilerInfo(['--profilerName', 'igprof', '--profilerExtraOptions', 'a b c', 'myopts.py'])
16  ['myopts.py']
17 
18  >>> getArgsWithoutoProfilerInfo(['--profilerName', 'igprof', '--options', 'a b c', 'myopts.py'])
19  ['--options', 'a b c', 'myopts.py']
20  """
21  newargs = []
22  args = list(args) # make a temp copy
23  while args:
24  o = args.pop(0)
25  if o.startswith('--profile'):
26  if '=' not in o:
27  args.pop(0)
28  else:
29  newargs.append(o)
30  return newargs
31 
32 
#---------------------------------------------------------------------
def gaudirun.option_cb (   option,
  opt,
  value,
  parser 
)
Add the option line to a list together with its position in the
argument list.

Definition at line 59 of file gaudirun.py.

59 
60  def option_cb(option, opt, value, parser):
61  """Add the option line to a list together with its position in the
62  argument list.
63  """
parser.values.options.append((len(parser.largs), value))

Variable Documentation

list gaudirun.arglist [profilerPath]

Definition at line 241 of file gaudirun.py.

tuple gaudirun.args [ a for a in sys.argv if a != '-T' and not '--tcmalloc'.startswith(a) ]

Definition at line 172 of file gaudirun.py.

tuple gaudirun.c gaudimain()

Definition at line 259 of file gaudirun.py.

string gaudirun.dest "post_options"

Definition at line 80 of file gaudirun.py.

dictionary gaudirun.g {}

Definition at line 282 of file gaudirun.py.

string gaudirun.help "do not run the application, just parse option files"

Definition at line 38 of file gaudirun.py.

string gaudirun.igprofPerfOptions "-d -pp -z -o igprof.pp.gz"

Definition at line 184 of file gaudirun.py.

dictionary gaudirun.l {}

Definition at line 283 of file gaudirun.py.

gaudirun.level logging.INFO

Definition at line 143 of file gaudirun.py.

string gaudirun.metavar "FILE"

Definition at line 40 of file gaudirun.py.

gaudirun.ncpus None)

Definition at line 117 of file gaudirun.py.

list gaudirun.options [ "importOptions(%r)" % f for f in args ]

Definition at line 264 of file gaudirun.py.

tuple gaudirun.optlines list(opts.options)

Definition at line 267 of file gaudirun.py.

string gaudirun.outoption "--log-file"

Definition at line 210 of file gaudirun.py.

tuple gaudirun.parser OptionParser(usage = "%prog [options] <opts_file> ...")

Definition at line 36 of file gaudirun.py.

string gaudirun.preload []

Definition at line 116 of file gaudirun.py.

string gaudirun.profilerExecName ""

Definition at line 178 of file gaudirun.py.

tuple gaudirun.profilerExtraOptions ''

Definition at line 115 of file gaudirun.py.

gaudirun.profilerName ''

Definition at line 113 of file gaudirun.py.

string gaudirun.profilerOptions ""

Definition at line 186 of file gaudirun.py.

tuple gaudirun.profilerOutput ''

Definition at line 114 of file gaudirun.py.

tuple gaudirun.profilerPath distutils.spawn.find_executable(profilerExecName)

Definition at line 227 of file gaudirun.py.

tuple gaudirun.root_logger logging.getLogger()

Definition at line 147 of file gaudirun.py.

string gaudirun.s "Invalid value : --ncpus : only %i cpus available"

Definition at line 128 of file gaudirun.py.

tuple gaudirun.sys_cpus cpu_count()

Definition at line 126 of file gaudirun.py.

gaudirun.tcmalloc False,

Definition at line 112 of file gaudirun.py.

list gaudirun.to_load
Initial value:
1 [libname
2  for libname in opts.preload
3  if libname not in set(preload)]

Definition at line 162 of file gaudirun.py.

tuple gaudirun.toolname profilerName.replace('valgrind','')

Definition at line 209 of file gaudirun.py.

string gaudirun.type "string"

Definition at line 65 of file gaudirun.py.


Generated at Fri May 31 2013 15:09:28 for Gaudi Framework, version v23r8 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004