コード例 #1
0
ファイル: yappi.py プロジェクト: nirs/yappi
def start(builtins=False, profile_threads=True):
    """
    Start profiler.
    """
    if profile_threads:
        threading.setprofile(_callback)
    _yappi.start(builtins, profile_threads)
コード例 #2
0
ファイル: yappi.py プロジェクト: yunstanford/yappi
def start(builtins=False, profile_threads=True):
    """
    Start profiler.
    """
    if profile_threads:
        threading.setprofile(_profile_thread_callback)
    _yappi.start(builtins, profile_threads)
コード例 #3
0
ファイル: yappi.py プロジェクト: afeset/miner2-tools
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)
コード例 #4
0
ファイル: yappi.py プロジェクト: afeset/miner2-tools
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)
コード例 #5
0
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)
コード例 #6
0
ファイル: yappi.py プロジェクト: jlquant/yappi
def start(builtins=False, timing_sample=1):
    threading.setprofile(__callback)
    _yappi.start(builtins, timing_sample)
コード例 #7
0
def start(builtins=False, timing_sample=1):
    threading.setprofile(__callback)
    _yappi.start(builtins, timing_sample)