ATLAS Offline Software
Loading...
Searching...
No Matches
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:
4from AthenaCommon.AppMgr import ServiceMgr
5from PerfMonVTune.PerfMonVTuneConf import VTuneProfilerService
6ServiceMgr += VTuneProfilerService("VTuneProfilerService")
7
8ServiceMgr.VTuneProfilerService.ResumeEvent = 10
9
10# Set up the profiler service as the first service to be created:
11theApp.CreateSvc.insert( 0, "VTuneProfilerService/VTuneProfilerService" ) # noqa: F821
12
13# Print a message with what happened:
14from AthenaCommon.Logging import logging
15log = logging.getLogger( "VTuneProfileEventLoop_preInclude" )
16log.info( "The job's event loop will get profiling" )