Created
April 8, 2012 12:11
-
-
Save mazurov/2336910 to your computer and use it in GitHub Desktop.
Check memory usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env gaudirun.py | |
## | |
## Configuration using environment variables | |
## | |
import os | |
## | |
## Hard coded configuration. | |
## | |
import Gaudi.Configuration | |
from Gaudi.Configuration import * | |
from Configurables import Moore, HltConf, EventSelector, AuditorSvc, MessageSvc | |
from LHCbKernel.Configuration import * | |
from Configurables import Moore | |
from Configurables import CondDB | |
from Configurables import L0Conf, HltConf | |
Moore().L0=True | |
#Moore().ReplaceL0BanksWithEmulated= True | |
#Moore().ForceSingleL0Configuration = False | |
Moore().ReplaceL0BanksWithEmulated= False | |
Moore().ForceSingleL0Configuration = False | |
CondDB().IgnoreHeartBeat = True | |
#MessageSvc().OutputLevel = DEBUG | |
from Configurables import LoKiSvc | |
LoKiSvc().Welcome = False | |
#Moore().Verbose = True | |
#Moore().ThresholdSettings = 'Physics_draft2012' | |
Moore().ThresholdSettings = 'Physics_AprilBU2012' | |
#Moore().EnableMonitoring = True | |
#Moore().CheckOdin = False | |
Moore().EvtMax = 10000 | |
# we want to run from threshold settings | |
Moore().UseTCK = False | |
#Moore().InitialTCK = '0x80910000' | |
#Moore().InitialTCK = '0x00101710' | |
Moore().UseDBSnapshot = False | |
Moore().EnableRunChangeHandler = False | |
Moore().inputFiles = ["PFN:castor:/castor/cern.ch/grid/lhcb/data/2012/RAW/FULL/LHCb/COLLISION12/111473/111473_0000000013.raw"] | |
#Moore().inputFiles = ['PFN:castor:/castor/cern.ch/grid/lhcb/data/2012/RAW/FULL/LHCb/COLLISION12/111473/111473_0000000052.raw'] | |
# 'PFN:castor:/castor/cern.ch/grid/lhcb/data/2012/RAW/FULL/LHCb/COLLISION12/111473/111473_0000000055.raw', | |
# 'PFN:castor:/castor/cern.ch/grid/lhcb/data/2012/RAW/FULL/LHCb/COLLISION12/111473/111473_0000000056.raw', | |
# 'PFN:castor:/castor/cern.ch/grid/lhcb/data/2012/RAW/FULL/LHCb/COLLISION12/111473/111473_0000000057.raw'] | |
#should it be 2012? | |
Moore().DataType = "2011" | |
Moore().Simulation = False | |
Moore().DDDBtag = "head-20120316" | |
Moore().CondDBtag = "head-20120316" | |
from Configurables import AuditorSvc | |
from Configurables import Google__HeapProfiler | |
from Configurables import Google__HeapChecker | |
auditor = Google__HeapProfiler() | |
auditor.DoFullEventProfile = True | |
auditor.FullEventNSampleEvents = 5000 | |
auditor.SkipEvents = 2000 | |
Moore().EnableAuditor = [ auditor ] | |
# AuditorSvc().Auditors += [auditor] | |
# ApplicationMgr().AuditAlgorithms = True | |
EventSelector().PrintFreq = 100 | |
print Moore() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment