ATLAS Offline Software
Loading...
Searching...
No Matches
DisablePerfMon_jobOFragment.py
Go to the documentation of this file.
1# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3# $Id: DisablePerfMon_jobOFragment.py 631453 2014-11-27 09:26:40Z will $
4#
5# This jobO fragment is used when setting up the profiling of an Athena job
6# to turn off PerfMon. The PerfMon code can in some cases interfere with
7# GPT in some weird ways...
8#
9
10# It should only be loaded once:
11include.block( "PerfMonGPerfTools/DisablePerfMon_jobOFragment.py" ) # noqa: F821
12
13# Disable PerfMon as much as we can:
14from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties
15pmon_properties.PerfMonFlags.doMonitoring.set_Value_and_Lock( False )
16
17#this is in a try block because AthAnalysisBase doesn't come with RecExConfig
18try:
19 from RecExConfig.RecFlags import rec
20 rec.doPerfMon.set_Value_and_Lock( False )
21 rec.doDetailedPerfMon.set_Value_and_Lock( False )
22 rec.doSemiDetailedPerfMon.set_Value_and_Lock( False )
23except ImportError:
24 pass