ATLAS Offline Software
Functions | Variables
python.PerfMonCompsConfig Namespace Reference

Functions

def PerfMonMTSvcCfg (flags, **kwargs)
 A minimal new-style configuration for PerfMonMTSvc. More...
 

Variables

 flags = initConfigFlags()
 
 MaxEvents
 
 NumThreads
 
 doFastMonMT
 
 OutputJSON
 
 cfg = MainServicesCfg(flags)
 
 CpuCruncherAlg = CompFactory.getComp('PerfMonTest::CpuCruncherAlg')
 
 sequenceName
 
 LeakyAlg = CompFactory.getComp('PerfMonTest::LeakyAlg')
 
 withDetails
 
 True
 
 summariseProps
 
 sc = cfg.run()
 

Function Documentation

◆ PerfMonMTSvcCfg()

def python.PerfMonCompsConfig.PerfMonMTSvcCfg (   flags,
**  kwargs 
)

A minimal new-style configuration for PerfMonMTSvc.

Configuring PerfMonMTSvc 

Definition at line 10 of file PerfMonCompsConfig.py.

10 def PerfMonMTSvcCfg(flags, **kwargs):
11  """ Configuring PerfMonMTSvc """
12 
13  # Get the logger
14  log = logging.getLogger("PerfMonMTSvcCfg")
15  log.info("Configuring PerfMonMTSvc with flags:")
16  log.info(" >> doFastMonMT {}".format(flags.PerfMon.doFastMonMT))
17  log.info(" >> doFullMonMT {}".format(flags.PerfMon.doFullMonMT))
18 
19  # Check if basic monitoring is asked for
20  if not flags.PerfMon.doFastMonMT and not flags.PerfMon.doFullMonMT:
21  log.info("Nothing to be done...")
22  return ComponentAccumulator()
23 
24  # Hook to PerfMonMTSvc
25  PerfMonMTSvc = CompFactory.PerfMonMTSvc
26 
27  # Set the main properties for the service
28  import os,psutil
29  kwargs.setdefault("wallTimeOffset",
30  psutil.Process(os.getpid()).create_time() * 1000)
31  kwargs.setdefault("numberOfThreads",
32  max(1,flags.Concurrency.NumThreads))
33  kwargs.setdefault("numberOfSlots",
34  max(1,flags.Concurrency.NumConcurrentEvents))
35  kwargs.setdefault("doComponentLevelMonitoring",
36  flags.PerfMon.doFullMonMT)
37  kwargs.setdefault("jsonFileName", flags.PerfMon.OutputJSON)
38 
39  # Get CA and add the service
40  acc = ComponentAccumulator()
41  acc.addService(PerfMonMTSvc(**kwargs), create=True)
42 
43  # Enable the auditors that are necessarry for the service
44  acc.addService(CompFactory.AuditorSvc(), create=True)
45  acc.setAppProperty("AuditAlgorithms", True)
46  acc.setAppProperty("AuditTools", True)
47  acc.setAppProperty("AuditServices", True)
48 
49  # Return the CA
50  return acc
51 
52 # A minimal job that demonstrates what PerfMonMTSvc does

Variable Documentation

◆ cfg

python.PerfMonCompsConfig.cfg = MainServicesCfg(flags)

Definition at line 70 of file PerfMonCompsConfig.py.

◆ CpuCruncherAlg

python.PerfMonCompsConfig.CpuCruncherAlg = CompFactory.getComp('PerfMonTest::CpuCruncherAlg')

Definition at line 74 of file PerfMonCompsConfig.py.

◆ doFastMonMT

python.PerfMonCompsConfig.doFastMonMT

Definition at line 64 of file PerfMonCompsConfig.py.

◆ flags

python.PerfMonCompsConfig.flags = initConfigFlags()

Definition at line 61 of file PerfMonCompsConfig.py.

◆ LeakyAlg

python.PerfMonCompsConfig.LeakyAlg = CompFactory.getComp('PerfMonTest::LeakyAlg')

Definition at line 78 of file PerfMonCompsConfig.py.

◆ MaxEvents

python.PerfMonCompsConfig.MaxEvents

Definition at line 62 of file PerfMonCompsConfig.py.

◆ NumThreads

python.PerfMonCompsConfig.NumThreads

Definition at line 63 of file PerfMonCompsConfig.py.

◆ OutputJSON

python.PerfMonCompsConfig.OutputJSON

Definition at line 65 of file PerfMonCompsConfig.py.

◆ sc

python.PerfMonCompsConfig.sc = cfg.run()

Definition at line 86 of file PerfMonCompsConfig.py.

◆ sequenceName

python.PerfMonCompsConfig.sequenceName

Definition at line 75 of file PerfMonCompsConfig.py.

◆ summariseProps

python.PerfMonCompsConfig.summariseProps

Definition at line 82 of file PerfMonCompsConfig.py.

◆ True

python.PerfMonCompsConfig.True

Definition at line 82 of file PerfMonCompsConfig.py.

◆ withDetails

python.PerfMonCompsConfig.withDetails

Definition at line 82 of file PerfMonCompsConfig.py.

max
#define max(a, b)
Definition: cfImp.cxx:41
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
vtune_athena.format
format
Definition: vtune_athena.py:14
python.PerfMonCompsConfig.PerfMonMTSvcCfg
def PerfMonMTSvcCfg(flags, **kwargs)
A minimal new-style configuration for PerfMonMTSvc.
Definition: PerfMonCompsConfig.py:10
PerfMonMTSvc
Definition: PerfMonMTSvc.h:41