The Gaudi Framework  master (37c0b60a)
IntelProfiler.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2 
12 
13 from Configurables import CpuHungryAlg, IntelProfilerAuditor
14 from Gaudi.Configuration import *
15 
16 MessageSvc().OutputLevel = INFO
17 
18 alg1 = CpuHungryAlg("Alg1")
19 alg2 = CpuHungryAlg("Alg2")
20 alg3 = CpuHungryAlg("Alg3")
21 alg4 = CpuHungryAlg("Alg4")
22 
23 alg1.Loops = alg2.Loops = alg3.Loops = alg4.Loops = 5000000
24 
25 subtop = Sequencer("SubSequence", Members=[alg1, alg2, alg3], ShortCircuit=False)
26 top = Sequencer("TopSequence", Members=[subtop, alg4], ShortCircuit=False)
27 
28 profiler = IntelProfilerAuditor()
29 profiler.OutputLevel = DEBUG
30 profiler.StartFromEventN = 1
31 profiler.StopAtEventN = 2
32 profiler.ComponentsForTaskTypes = []
33 profiler.IncludeAlgorithms = ["SubSequence"]
34 profiler.ExcludeAlgorithms = ["Alg2"]
35 AuditorSvc().Auditors += [profiler]
36 
38  EvtMax=3,
39  EvtSel="NONE",
40  HistogramPersistency="NONE",
41  TopAlg=[top],
42  AuditAlgorithms=True,
43 )
AuditorSvc
Definition: AuditorSvc.h:28
Gaudi.Configuration
Definition: Configuration.py:1
MessageSvc
Definition: MessageSvc.h:40
ApplicationMgr
Definition: ApplicationMgr.h:57