![]() |
The Gaudi Framework
v31r0 (aeb156f0)
|
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 = [] |
parser = OptionParser(usage="%prog [options] <opts_file> ...") | |
action | |
help | |
type | |
metavar | |
default | |
callback | |
nargs | |
dest | |
options = ["importOptions(%r)" % f for f in args] | |
tcmalloc | |
profilerName = opts.profilerName | |
profilerOutput = opts.profilerOutputor(profilerName + ".output") | |
profilerExtraOptions = opts.profilerExtraOptions | |
preload = os.environ.get("LD_PRELOAD", "") | |
ncpus | |
old_conf_user_apply | |
run_info_file | |
list | argv = [] |
opts | |
args | |
sys_cpus = cpu_count() | |
string | s = "Invalid value : --ncpus : only %i cpus available" |
string | prefix = "// " |
level = logging.INFO | |
with_time | |
root_logger = logging.getLogger() | |
sanitizer = os.environ.get("PRELOAD_SANITIZER_LIB", "") | |
list | to_load |
string | profilerExecName = "" |
string | igprofPerfOptions = "-d -pp -z -o igprof.pp.gz" |
string | profilerOptions = "" |
toolname = profilerName.replace('valgrind', '') | |
string | outoption = "--log-file" |
profilerPath = distutils.spawn.find_executable(profilerExecName) | |
list | to_reload = [] |
list | arglist = [profilerPath]+profilerOptions.split()+args |
output | |
c = gaudimain() | |
optlines = list(opts.options) | |
dictionary | g = {} |
dictionary | l = {} |
_appliedConfigurableUsers_ | |
use_temp_opts | |
fd | |
tmpfile | |
printsequence | |
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 79 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 8 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 173 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 63 of file gaudirun.py.
def gaudirun.setLibraryPreload | ( | newpreload | ) |
|
private |
Definition at line 527 of file gaudirun.py.
|
private |
Definition at line 76 of file gaudirun.py.
gaudirun.action |
Definition at line 136 of file gaudirun.py.
list gaudirun.arglist = [profilerPath]+profilerOptions.split()+args |
Definition at line 460 of file gaudirun.py.
list gaudirun.args |
Definition at line 303 of file gaudirun.py.
list gaudirun.argv = [] |
Definition at line 294 of file gaudirun.py.
gaudirun.c = gaudimain() |
Definition at line 483 of file gaudirun.py.
gaudirun.callback |
Definition at line 182 of file gaudirun.py.
gaudirun.default |
Definition at line 169 of file gaudirun.py.
gaudirun.dest |
Definition at line 201 of file gaudirun.py.
gaudirun.fd |
Definition at line 555 of file gaudirun.py.
dictionary gaudirun.g = {} |
Definition at line 516 of file gaudirun.py.
gaudirun.help |
Definition at line 137 of file gaudirun.py.
string gaudirun.igprofPerfOptions = "-d -pp -z -o igprof.pp.gz" |
Definition at line 388 of file gaudirun.py.
dictionary gaudirun.l = {} |
Definition at line 517 of file gaudirun.py.
gaudirun.level = logging.INFO |
Definition at line 330 of file gaudirun.py.
gaudirun.metavar |
Definition at line 143 of file gaudirun.py.
gaudirun.nargs |
Definition at line 184 of file gaudirun.py.
gaudirun.ncpus |
Definition at line 288 of file gaudirun.py.
gaudirun.old_conf_user_apply |
Definition at line 290 of file gaudirun.py.
list gaudirun.options = ["importOptions(%r)" % f for f in args] |
Definition at line 282 of file gaudirun.py.
gaudirun.optlines = list(opts.options) |
Definition at line 491 of file gaudirun.py.
gaudirun.opts |
Definition at line 303 of file gaudirun.py.
string gaudirun.outoption = "--log-file" |
Definition at line 414 of file gaudirun.py.
gaudirun.output |
Definition at line 480 of file gaudirun.py.
Definition at line 132 of file gaudirun.py.
string gaudirun.prefix = "// " |
Definition at line 327 of file gaudirun.py.
string gaudirun.preload = os.environ.get("LD_PRELOAD", "") |
Definition at line 287 of file gaudirun.py.
gaudirun.printsequence |
Definition at line 562 of file gaudirun.py.
string gaudirun.profilerExecName = "" |
Definition at line 382 of file gaudirun.py.
gaudirun.profilerExtraOptions = opts.profilerExtraOptions |
Definition at line 286 of file gaudirun.py.
gaudirun.profilerName = opts.profilerName |
Definition at line 284 of file gaudirun.py.
string gaudirun.profilerOptions = "" |
Definition at line 390 of file gaudirun.py.
gaudirun.profilerOutput = opts.profilerOutputor(profilerName + ".output") |
Definition at line 285 of file gaudirun.py.
gaudirun.profilerPath = distutils.spawn.find_executable(profilerExecName) |
Definition at line 437 of file gaudirun.py.
gaudirun.retcode = c.run(opts.gdb, opts.ncpus) |
Definition at line 576 of file gaudirun.py.
gaudirun.root_logger = logging.getLogger() |
Definition at line 334 of file gaudirun.py.
dictionary gaudirun.run_info = {} |
Definition at line 583 of file gaudirun.py.
gaudirun.run_info_file |
Definition at line 291 of file gaudirun.py.
string gaudirun.s = "Invalid value : --ncpus : only %i cpus available" |
Definition at line 312 of file gaudirun.py.
gaudirun.sanitizer = os.environ.get("PRELOAD_SANITIZER_LIB", "") |
Definition at line 337 of file gaudirun.py.
gaudirun.sys_cpus = cpu_count() |
Definition at line 310 of file gaudirun.py.
gaudirun.tcmalloc |
Definition at line 283 of file gaudirun.py.
gaudirun.tmpfile |
Definition at line 555 of file gaudirun.py.
list gaudirun.to_load |
Definition at line 363 of file gaudirun.py.
gaudirun.to_reload = [] |
Definition at line 451 of file gaudirun.py.
gaudirun.toolname = profilerName.replace('valgrind', '') |
Definition at line 413 of file gaudirun.py.
gaudirun.type |
Definition at line 142 of file gaudirun.py.
gaudirun.use_temp_opts |
Definition at line 547 of file gaudirun.py.
gaudirun.with_time |
Definition at line 333 of file gaudirun.py.