![]() |
The Gaudi Framework
v36r16 (ea80daf8)
|
Classes | |
class | ArgProcessor |
class | FakeModule |
Functions | |
def | getArgsWithoutProfilerInfo (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|function_id> ...") | |
action | |
help | |
type | |
metavar | |
default | |
callback | |
nargs | |
dest | |
options = ["process({!r})".format(arg) for arg in args] | |
tcmalloc | |
profilerName = opts.profilerName | |
profilerOutput = opts.profilerOutput or (profilerName + ".output") | |
profilerExtraOptions = opts.profilerExtraOptions | |
preload = os.environ.get("LD_PRELOAD", "") | |
ncpus | |
old_conf_user_apply | |
run_info_file | |
application | |
list | argv = [] |
opts | |
args = [a for a in sys.argv if a != "-T" and not "--tcmalloc".startswith(a)] | |
sys_cpus = cpu_count() | |
string | s = "Invalid value : --ncpus : only %i cpus available" % sys_cpus |
string | prefix = "// " |
level = logging.INFO | |
with_time | |
root_logger = logging.getLogger() | |
sanitizers = os.environ.get("PRELOAD_SANITIZER_LIB", "") | |
list | to_load = [libname for libname in opts.preload if libname not in set(preload)] |
string | profilerExecName = "" |
string | igprofPerfOptions = "-d -pp -z -o igprof.pp.gz".split() |
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() | |
process | |
optlines = list(opts.options) | |
dictionary | g = {"process": process} |
dictionary | l = {} |
_appliedConfigurableUsers_ | |
use_temp_opts | |
instances | |
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 90 of file gaudirun.py.
def gaudirun.getArgsWithoutProfilerInfo | ( | args | ) |
Remove from the arguments the presence of the profiler and its output in order to relaunch the script w/o infinite loops. >>> getArgsWithoutProfilerInfo(['--profilerName', 'igprof', 'myopts.py']) ['myopts.py'] >>> getArgsWithoutProfilerInfo(['--profilerName=igprof', 'myopts.py']) ['myopts.py'] >>> getArgsWithoutProfilerInfo(['--profilerName', 'igprof', '--profilerExtraOptions', 'a b c', 'myopts.py']) ['myopts.py'] >>> getArgsWithoutProfilerInfo(['--profilerName', 'igprof', '--options', 'a b c', 'myopts.py']) ['--options', 'a b c', 'myopts.py']
Definition at line 20 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 195 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 74 of file gaudirun.py.
def gaudirun.setLibraryPreload | ( | newpreload | ) |
|
private |
Definition at line 593 of file gaudirun.py.
|
private |
Definition at line 87 of file gaudirun.py.
gaudirun.action |
Definition at line 155 of file gaudirun.py.
gaudirun.application |
Definition at line 325 of file gaudirun.py.
list gaudirun.arglist = [profilerPath] + profilerOptions.split() + args |
Definition at line 503 of file gaudirun.py.
def gaudirun.args = [a for a in sys.argv if a != "-T" and not "--tcmalloc".startswith(a)] |
Definition at line 338 of file gaudirun.py.
list gaudirun.argv = [] |
Definition at line 329 of file gaudirun.py.
gaudirun.c = gaudimain() |
Definition at line 527 of file gaudirun.py.
gaudirun.callback |
Definition at line 204 of file gaudirun.py.
gaudirun.default |
Definition at line 190 of file gaudirun.py.
gaudirun.dest |
Definition at line 226 of file gaudirun.py.
gaudirun.fd |
Definition at line 629 of file gaudirun.py.
dictionary gaudirun.g = {"process": process} |
Definition at line 581 of file gaudirun.py.
gaudirun.help |
Definition at line 156 of file gaudirun.py.
string gaudirun.igprofPerfOptions = "-d -pp -z -o igprof.pp.gz".split() |
Definition at line 431 of file gaudirun.py.
gaudirun.instances |
Definition at line 621 of file gaudirun.py.
dictionary gaudirun.l = {} |
Definition at line 582 of file gaudirun.py.
gaudirun.level = logging.INFO |
Definition at line 366 of file gaudirun.py.
gaudirun.metavar |
Definition at line 163 of file gaudirun.py.
gaudirun.nargs |
Definition at line 206 of file gaudirun.py.
gaudirun.ncpus |
Definition at line 321 of file gaudirun.py.
gaudirun.old_conf_user_apply |
Definition at line 323 of file gaudirun.py.
list gaudirun.options = ["process({!r})".format(arg) for arg in args] |
Definition at line 315 of file gaudirun.py.
gaudirun.optlines = list(opts.options) |
Definition at line 555 of file gaudirun.py.
gaudirun.opts |
Definition at line 338 of file gaudirun.py.
string gaudirun.outoption = "--log-file" |
Definition at line 457 of file gaudirun.py.
gaudirun.output |
Definition at line 523 of file gaudirun.py.
Definition at line 151 of file gaudirun.py.
string gaudirun.prefix = "// " |
Definition at line 363 of file gaudirun.py.
string gaudirun.preload = os.environ.get("LD_PRELOAD", "") |
Definition at line 320 of file gaudirun.py.
gaudirun.printsequence |
Definition at line 636 of file gaudirun.py.
gaudirun.process |
Definition at line 547 of file gaudirun.py.
string gaudirun.profilerExecName = "" |
Definition at line 425 of file gaudirun.py.
gaudirun.profilerExtraOptions = opts.profilerExtraOptions |
Definition at line 319 of file gaudirun.py.
gaudirun.profilerName = opts.profilerName |
Definition at line 317 of file gaudirun.py.
string gaudirun.profilerOptions = "" |
Definition at line 433 of file gaudirun.py.
gaudirun.profilerOutput = opts.profilerOutput or (profilerName + ".output") |
Definition at line 318 of file gaudirun.py.
gaudirun.profilerPath = distutils.spawn.find_executable(profilerExecName) |
Definition at line 479 of file gaudirun.py.
gaudirun.retcode = c.run(opts.gdb, opts.ncpus) |
Definition at line 650 of file gaudirun.py.
gaudirun.root_logger = logging.getLogger() |
Definition at line 370 of file gaudirun.py.
dictionary gaudirun.run_info = {} |
Definition at line 658 of file gaudirun.py.
gaudirun.run_info_file |
Definition at line 324 of file gaudirun.py.
string gaudirun.s = "Invalid value : --ncpus : only %i cpus available" % sys_cpus |
Definition at line 348 of file gaudirun.py.
gaudirun.sanitizers = os.environ.get("PRELOAD_SANITIZER_LIB", "") |
Definition at line 373 of file gaudirun.py.
gaudirun.sys_cpus = cpu_count() |
Definition at line 346 of file gaudirun.py.
gaudirun.tcmalloc |
Definition at line 316 of file gaudirun.py.
gaudirun.tmpfile |
Definition at line 629 of file gaudirun.py.
list gaudirun.to_load = [libname for libname in opts.preload if libname not in set(preload)] |
Definition at line 411 of file gaudirun.py.
def gaudirun.to_reload = [] |
Definition at line 494 of file gaudirun.py.
gaudirun.toolname = profilerName.replace("valgrind", "") |
Definition at line 456 of file gaudirun.py.
gaudirun.type |
Definition at line 162 of file gaudirun.py.
gaudirun.use_temp_opts |
Definition at line 615 of file gaudirun.py.
gaudirun.with_time |
Definition at line 369 of file gaudirun.py.