The Gaudi Framework  v36r1 (3e2fb5a8)
IntelProfiler.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2 
12 
13 from Gaudi.Configuration import *
14 from Configurables import IntelProfilerAuditor, CpuHungryAlg
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(
26  'SubSequence', Members=[alg1, alg2, alg3], StopOverride=True)
27 top = Sequencer('TopSequence', Members=[subtop, alg4], StopOverride=True)
28 
29 profiler = IntelProfilerAuditor()
30 profiler.OutputLevel = DEBUG
31 profiler.StartFromEventN = 1
32 profiler.StopAtEventN = 2
33 profiler.ComponentsForTaskTypes = []
34 profiler.IncludeAlgorithms = ["SubSequence"]
35 profiler.ExcludeAlgorithms = ["Alg2"]
36 AuditorSvc().Auditors += [profiler]
37 
39  EvtMax=3,
40  EvtSel='NONE',
41  HistogramPersistency='NONE',
42  TopAlg=[top],
43  AuditAlgorithms=True)
Sequencer
ClassName: Sequencer.
Definition: Sequencer.h:35
AuditorSvc
Definition: AuditorSvc.h:28
Gaudi.Configuration
Definition: Configuration.py:1
MessageSvc
Definition: MessageSvc.h:40
ApplicationMgr
Definition: ApplicationMgr.h:57