2"""VTune profiler config
4Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
7from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8from AthenaConfiguration.ComponentFactory
import CompFactory
12 """Configure VTune profiler"""
13 kwargs.setdefault("ResumeEvent", flags.Concurrency.NumThreads + 1)
14 kwargs.setdefault("ProfiledAlgs", flags.PerfMon.VTune.ProfiledAlgs)
16 VTuneProfilerService = CompFactory.VTuneProfilerService
17 acc = ComponentAccumulator()
18 acc.addService(VTuneProfilerService(**kwargs), create=True)
19 acc.setAppProperty("AuditAlgorithms", True)
20 acc.setAppProperty("AuditTools", True)
21 acc.setAppProperty("AuditServices", True)
VTuneProfilerServiceCfg(flags, **kwargs)