ATLAS Offline Software
Loading...
Searching...
No Matches
python.PerfMonFlags Namespace Reference

Classes

class  doFastMonMT
class  doFullMonMT
class  doMonitoringMT
class  OutputJSON
class  PerfMonFlags

Functions

 _decode_pmon_opts (opts, dry_run=False)
 module clean-up

Variables

str __author__ = 'Sebastien Binet'
str __version__ = "$Revision: 1.17 $"
str __doc__ = "A container of flags for Performance Monitoring"
list list_jobproperties

Detailed Description

  A container of flags for Performance Monitoring   

Function Documentation

◆ _decode_pmon_opts()

python.PerfMonFlags._decode_pmon_opts ( opts,
dry_run = False )
protected

module clean-up

– helper function to decode athena-command-line options

helper function to decode athena-command-line options.

@param opts is a list of options which can enable or disable a few
       jobproperties.PerfMonFlags fields

@param dry_run to only decode but not set the options

one activates a perfmon flag by prepending '+' in front of the option name
(or nothing prepended, '+' being the implied default)
and de-activates it by prepending '-'.

Definition at line 101 of file PerfMonFlags.py.

101def _decode_pmon_opts(opts, dry_run=False):
102 """helper function to decode athena-command-line options.
103
104 @param opts is a list of options which can enable or disable a few
105 jobproperties.PerfMonFlags fields
106
107 @param dry_run to only decode but not set the options
108
109 one activates a perfmon flag by prepending '+' in front of the option name
110 (or nothing prepended, '+' being the implied default)
111 and de-activates it by prepending '-'.
112 """
113 pmf = jobproperties.PerfMonFlags
114 dispatch = {
115 'perfmonmt': pmf.doMonitoringMT,
116 'fastmonmt': pmf.doFastMonMT,
117 'fullmonmt': pmf.doFullMonMT,
118 }
119
120 for opt in opts:
121 flag_name = opt[:]
122 val = True
123 if opt.startswith('-'):
124 val = False
125 flag_name = flag_name[1:]
126 elif opt.startswith('+'):
127 val = True
128 flag_name = flag_name[1:]
129 if flag_name not in dispatch:
130 raise ValueError(
131 '[%s] is not a valid PerfMonFlag (allowed: %r)' %
132 (flag_name, list(dispatch.keys()))
133 )
134
135 if not dry_run:
136 dispatch[flag_name].set_Value(val)

Variable Documentation

◆ __author__

str python.PerfMonFlags.__author__ = 'Sebastien Binet'
private

Definition at line 12 of file PerfMonFlags.py.

◆ __doc__

str python.PerfMonFlags.__doc__ = "A container of flags for Performance Monitoring"
private

Definition at line 14 of file PerfMonFlags.py.

◆ __version__

str python.PerfMonFlags.__version__ = "$Revision: 1.17 $"
private

Definition at line 13 of file PerfMonFlags.py.

◆ list_jobproperties

list python.PerfMonFlags.list_jobproperties
Initial value:
1= [
2 doMonitoringMT,
3 doFastMonMT,
4 doFullMonMT,
5 OutputJSON,
6 ]

Definition at line 87 of file PerfMonFlags.py.