![]() |
The Gaudi Framework
v26r4
|
Classes | |
class | FakeModule |
Functions | |
def | getArgsWithoutoProfilerInfo (args) |
def | setLibraryPreload (newpreload) |
def | rationalizepath (path) |
def | getArgsFromQmt (qmtfile) |
def | option_cb (option, opt, value, parser) |
Variables | |
list | _qmt_tmp_opt_files = [] |
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 = "old_conf_user_apply" |
tcmalloc = False, | |
string | profilerName = '' |
string | profilerOutput = '' |
string | profilerExtraOptions = '' |
list | preload = [] |
ncpus = None, | |
string | old_conf_user_apply = 'GAUDI_FIXED_APPLY_CONF' |
run_info_file = None) | |
list | argv = [] |
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 | to_reload = [] |
list | arglist = [profilerPath] |
tuple | c = gaudimain() |
list | options = [ "importOptions(%r)" % f for f in args ] |
tuple | optlines = list(opts.options) |
dictionary | g = {} |
dictionary | l = {} |
tuple | retcode = c.run(opts.gdb,opts.ncpus) |
dictionary | run_info = {} |
def gaudirun.getArgsFromQmt | ( | qmtfile | ) |
Given a .qmt file, return the command line arguments of the corresponding test.
Definition at line 71 of file gaudirun.py.
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 7 of file gaudirun.py.
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 145 of file gaudirun.py.
def gaudirun.rationalizepath | ( | path | ) |
Convert the given path to a real path if the pointed file exists, otherwise just normalize it.
Definition at line 59 of file gaudirun.py.
def gaudirun.setLibraryPreload | ( | newpreload | ) |
list gaudirun._qmt_tmp_opt_files = [] |
Definition at line 70 of file gaudirun.py.
list gaudirun.arglist = [profilerPath] |
Definition at line 371 of file gaudirun.py.
tuple gaudirun.args = [ a for a in sys.argv if a != '-T' and not '--tcmalloc'.startswith(a) ] |
Definition at line 291 of file gaudirun.py.
list gaudirun.argv = [] |
Definition at line 228 of file gaudirun.py.
tuple gaudirun.c = gaudimain() |
Definition at line 392 of file gaudirun.py.
string gaudirun.dest = "old_conf_user_apply" |
Definition at line 162 of file gaudirun.py.
dictionary gaudirun.g = {} |
Definition at line 421 of file gaudirun.py.
string gaudirun.help = "do not run the application, just parse option files" |
Definition at line 124 of file gaudirun.py.
string gaudirun.igprofPerfOptions = "-d -pp -z -o igprof.pp.gz" |
Definition at line 303 of file gaudirun.py.
dictionary gaudirun.l = {} |
Definition at line 422 of file gaudirun.py.
gaudirun.level = logging.INFO |
Definition at line 262 of file gaudirun.py.
string gaudirun.metavar = "FILE" |
Definition at line 126 of file gaudirun.py.
gaudirun.ncpus = None, |
Definition at line 222 of file gaudirun.py.
string gaudirun.old_conf_user_apply = 'GAUDI_FIXED_APPLY_CONF' |
Definition at line 224 of file gaudirun.py.
list gaudirun.options = [ "importOptions(%r)" % f for f in args ] |
Definition at line 397 of file gaudirun.py.
tuple gaudirun.optlines = list(opts.options) |
Definition at line 400 of file gaudirun.py.
string gaudirun.outoption = "--log-file" |
Definition at line 329 of file gaudirun.py.
Definition at line 122 of file gaudirun.py.
string gaudirun.preload = [] |
Definition at line 221 of file gaudirun.py.
string gaudirun.profilerExecName = "" |
Definition at line 297 of file gaudirun.py.
tuple gaudirun.profilerExtraOptions = '' |
Definition at line 220 of file gaudirun.py.
string gaudirun.profilerName = '' |
Definition at line 218 of file gaudirun.py.
string gaudirun.profilerOptions = "" |
Definition at line 305 of file gaudirun.py.
tuple gaudirun.profilerOutput = '' |
Definition at line 219 of file gaudirun.py.
tuple gaudirun.profilerPath = distutils.spawn.find_executable(profilerExecName) |
Definition at line 350 of file gaudirun.py.
tuple gaudirun.retcode = c.run(opts.gdb,opts.ncpus) |
Definition at line 479 of file gaudirun.py.
tuple gaudirun.root_logger = logging.getLogger() |
Definition at line 266 of file gaudirun.py.
dictionary gaudirun.run_info = {} |
Definition at line 485 of file gaudirun.py.
gaudirun.run_info_file = None) |
Definition at line 225 of file gaudirun.py.
string gaudirun.s = "Invalid value : --ncpus : only %i cpus available" |
Definition at line 246 of file gaudirun.py.
tuple gaudirun.sys_cpus = cpu_count() |
Definition at line 244 of file gaudirun.py.
gaudirun.tcmalloc = False, |
Definition at line 217 of file gaudirun.py.
list gaudirun.to_load |
Definition at line 281 of file gaudirun.py.
tuple gaudirun.to_reload = [] |
Definition at line 362 of file gaudirun.py.
tuple gaudirun.toolname = profilerName.replace('valgrind','') |
Definition at line 328 of file gaudirun.py.
string gaudirun.type = "string" |
Definition at line 151 of file gaudirun.py.