def __init__()

in codeguru_profiler_agent/sampler.py [0:0]


    def __init__(self, environment=dict()):
        """
        :param environment: dependency container dictionary for the current profiler
        :param max_threads: (inside environment) the max number of threads getting sampled
        :param excluded_threads: (inside environment) set of thread names to be excluded from sampling
        """
        self._max_threads = environment.get("max_threads") or 100
        self._excluded_threads = environment.get("excluded_threads") or set()
        self._get_stacks = \
            environment.get("get_stacks") or codeguru_profiler_agent.sampling_utils.get_stacks
        self._thread_lister = environment.get("thread_lister") or sys
        self.timer = environment.get("timer")