in codeguru_profiler_agent/profiler.py [0:0]
def _set_default_environment(profiling_group_name):
return {
'timer': Timer(),
'profiler_thread_name': 'codeguru-profiler-agent-' + str(uuid.uuid4()).replace('-', ''),
'reporting_mode': 'codeguru_service',
'file_prefix': 'profile-{}'.format(re.sub(r"\W", "", profiling_group_name)),
'excluded_threads': set(),
'should_profile': True,
'sampling_interval': DEFAULT_SAMPLING_INTERVAL,
'reporting_interval': DEFAULT_REPORTING_INTERVAL,
'minimum_time_reporting': INITIAL_MINIMUM_REPORTING_INTERVAL,
'max_stack_depth': DEFAULT_MAX_STACK_DEPTH,
'cpu_limit_percentage': DEFAULT_CPU_LIMIT_PERCENTAGE,
'memory_limit_bytes': DEFAULT_MEMORY_LIMIT_BYTES,
'host_weight': 1.0,
'killswitch_filepath': KILLSWITCH_FILEPATH,
'max_threads': 100
}