ATLAS Offline Software
VTuneProfileEventLoop_preInclude.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 # Set up the profiler service:
4 from AthenaCommon.AppMgr import ServiceMgr
5 from PerfMonVTune.PerfMonVTuneConf import VTuneProfilerService
6 ServiceMgr += VTuneProfilerService("VTuneProfilerService")
7 
8 ServiceMgr.VTuneProfilerService.ResumeEvent = 10
9 
10 # Set up the profiler service as the first service to be created:
11 theApp.CreateSvc.insert( 0, "VTuneProfilerService/VTuneProfilerService" ) # noqa: F821
12 
13 # Print a message with what happened:
14 from AthenaCommon.Logging import logging
15 log = logging.getLogger( "VTuneProfileEventLoop_preInclude" )
16 log.info( "The job's event loop will get profiling" )