def start(builtins=False, profile_threads=True): """ Start profiler. """ if profile_threads: threading.setprofile(_callback) _yappi.start(builtins, profile_threads)
def start(builtins=False, profile_threads=True): """ Start profiler. """ if profile_threads: threading.setprofile(_profile_thread_callback) _yappi.start(builtins, profile_threads)
def start(builtins=False): ''' Args: builtins: If set true, then builtin functions are profiled too. timing_sample: will cause the profiler to do timing measuresements according to the value. Will increase profiler speed but decrease accuracy. ''' threading.setprofile(__callback) _yappi.start(builtins)
def start(builtins=False, profile_threads=True, profile_greenlets=True): """ Start profiler. profile_threads: Set to True to profile multiple threads. Set to false to profile only the invoking thread. This argument is only respected when context backend is 'native_thread' and ignored otherwise. profile_greenlets: Set to True to to profile multiple greenlets. Set to False to profile only the invoking greenlet. This argument is only respected when context backend is 'greenlet' and ignored otherwise. """ backend = _yappi.get_context_backend() profile_contexts = ((profile_threads and backend == NATIVE_THREAD) or (profile_greenlets and backend == GREENLET)) if profile_contexts: threading.setprofile(_profile_thread_callback) _yappi.start(builtins, profile_contexts)
def start(builtins=False, timing_sample=1): threading.setprofile(__callback) _yappi.start(builtins, timing_sample)