ATLAS Offline Software
Loading...
Searching...
No Matches
GPT_ProfilerServiceConfig Namespace Reference

Functions

 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()

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

Definition at line 10 of file GPT_ProfilerServiceConfig.py.

10def 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.