ATLAS Offline Software
Functions | Variables
GPT_ProfilerServiceConfig Namespace Reference

Functions

def GPT_ProfilerServiceCfg (flags, **kwargs)
 

Variables

 flags = initConfigFlags()
 
 MaxEvents
 
 cfg = MainServicesCfg(flags)
 

Detailed Description

GPerfTools profiler config

Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ GPT_ProfilerServiceCfg()

def GPT_ProfilerServiceConfig.GPT_ProfilerServiceCfg (   flags,
**  kwargs 
)
Configure GPerfTools CPU profiler

Definition at line 10 of file GPT_ProfilerServiceConfig.py.

10 def GPT_ProfilerServiceCfg(flags, **kwargs):
11  """Configure GPerfTools CPU profiler"""
12 
13  ProfilerService = CompFactory.GPT.ProfilerService
14  kwargs.setdefault("ProfileFileName", "gpt-execute.profile")
15  kwargs.setdefault("InitEvent", 1)
16 
17  acc = ComponentAccumulator()
18  acc.addService(ProfilerService(**kwargs), create=True)
19  acc.setAppProperty("AuditAlgorithms", True)
20  acc.setAppProperty("AuditTools", True)
21  acc.setAppProperty("AuditServices", True)
22  return acc
23 
24 
25 #Brief example of running profiler

Variable Documentation

◆ cfg

GPT_ProfilerServiceConfig.cfg = MainServicesCfg(flags)

Definition at line 32 of file GPT_ProfilerServiceConfig.py.

◆ flags

GPT_ProfilerServiceConfig.flags = initConfigFlags()

Definition at line 30 of file GPT_ProfilerServiceConfig.py.

◆ MaxEvents

GPT_ProfilerServiceConfig.MaxEvents

Definition at line 31 of file GPT_ProfilerServiceConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GPT_ProfilerServiceConfig.GPT_ProfilerServiceCfg
def GPT_ProfilerServiceCfg(flags, **kwargs)
Definition: GPT_ProfilerServiceConfig.py:10