ATLAS Offline Software
Loading...
Searching...
No Matches
PerfMonVTuneConfig.py
Go to the documentation of this file.
1#!/usr/bin/env python
2"""VTune profiler config
3
4Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5"""
6
7from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8from AthenaConfiguration.ComponentFactory import CompFactory
9
10
11def VTuneProfilerServiceCfg(flags, **kwargs):
12 """Configure VTune profiler"""
13 kwargs.setdefault("ResumeEvent", flags.Concurrency.NumThreads + 1)
14 kwargs.setdefault("ProfiledAlgs", flags.PerfMon.VTune.ProfiledAlgs)
15
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)
22 return acc
VTuneProfilerServiceCfg(flags, **kwargs)