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