Module Expr Str Assign NameStore Call NameLoad Str For NameStore AttributeLoad NameLoad attr body Exec BinOpMod Str TupleLoad NameLoad NameLoad Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad Dict Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body If Call NameLoad NameLoad Str NameLoad body Return Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TryFinally body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr TryFinally body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Num Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad ListComp TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Str While SubscriptLoad NameLoad Index Num body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareIn NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign TupleStore NameStore NameStore NameStore NameStore NameStore TupleLoad Num Num Num Num Dict If UnaryOpNot NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num If NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad orelse Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Num orelse If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad BinOpSub NameLoad Num BinOpAdd NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore TupleLoad NameLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Expr Str Assign NameStore Call NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list
N/A N/A This module is API-equivalent to the standard library :mod:`profile` module but it is greenthread-aware as well as thread-aware.  Use this module
to profile Eventlet-based applications in preference to either :mod:`profile` or :mod:`cProfile`.
FIXME: No testcases for this module. 
 N/A profile_orig N/A __import__ profile N/A var N/A profile_orig __all__ N/A N/A N/A %s = profile_orig.%s N/A var var N/A new N/A sys N/A traceback N/A functools eventlet greenthread eventlet patcher N/A thread N/A N/A patcher original thread Profile N/A N/A profile_orig Profile N/A N/A base N/A profile_orig Profile __init__ N/A N/A self timer bias N/A None None N/A N/A N/A self current_tasklet N/A N/A greenthread getcurrent N/A N/A self thread_id N/A N/A thread get_ident N/A N/A N/A N/A self base __init__ self timer bias N/A N/A self sleeping N/A N/A __call__ N/A N/A self N/A args N/A N/A make callable, allowing an instance to be the profiler N/A r N/A N/A self dispatcher args N/A _setup N/A N/A self N/A N/A N/A N/A N/A self cur N/A self timings N/A self current_tasklet N/A None N/A N/A N/A greenthread getcurrent N/A N/A self thread_id N/A N/A thread get_ident N/A N/A N/A self simulate_call profiler N/A start N/A N/A self name N/A start N/A N/A N/A getattr self running False N/A N/A N/A N/A N/A self _setup N/A N/A N/A self simulate_call start N/A N/A self running True N/A N/A N/A sys setprofile N/A self dispatcher N/A stop N/A N/A self N/A N/A N/A N/A N/A sys setprofile None N/A N/A self running False N/A N/A N/A self TallyTimings N/A runctx N/A N/A self cmd globals locals N/A N/A N/A N/A N/A self _setup N/A N/A N/A N/A N/A N/A profile_orig Profile runctx self cmd globals locals N/A N/A N/A N/A self TallyTimings N/A runcall N/A N/A self func N/A args kw N/A N/A N/A N/A self _setup N/A N/A N/A N/A N/A N/A profile_orig Profile runcall self func args kw N/A N/A N/A N/A self TallyTimings N/A trace_dispatch_return_extend_back N/A N/A self frame t N/A N/A N/A A hack function to override error checking in parent class.  It
        allows invalid returns (where frames weren't preveiously entered into
        the profiler) which can happen for all the tasklets that suddenly start
        to get monitored. This means that the time will eventually be attributed 
        to a call high in the chain, when there is a tasklet switch
         N/A N/A isinstance N/A N/A self cur N/A -2 N/A Profile fake_frame N/A N/A False N/A N/A N/A self trace_dispatch_call frame 0 N/A N/A N/A self trace_dispatch_return frame t N/A trace_dispatch_c_return_extend_back N/A N/A self frame t N/A N/A N/A N/A isinstance N/A N/A self cur N/A -2 N/A Profile fake_frame N/A N/A False N/A N/A N/A self trace_dispatch_c_call frame 0 N/A N/A N/A self trace_dispatch_return frame t N/A N/A dispatch N/A dict N/A N/A profile_orig Profile dispatch N/A N/A N/A dispatch update N/A return c_return trace_dispatch_return_extend_back trace_dispatch_c_return_extend_back SwitchTasklet N/A N/A self t0 t1 t N/A N/A N/A N/A pt it et fn frame rcur N/A self cur N/A cur N/A pt N/A it t et fn frame rcur N/A N/A N/A self sleeping N/A t0 N/A cur N/A self timings N/A N/A self current_tasklet t1 N/A N/A N/A N/A N/A self cur N/A self timings N/A N/A N/A self sleeping pop t1 N/A N/A N/A KeyError N/A N/A N/A N/A self cur N/A self timings N/A None N/A N/A N/A N/A self simulate_call profiler N/A N/A N/A self simulate_call new_tasklet N/A ContextWrap N/A N/A f N/A N/A ContextWrapper N/A N/A self arg t N/A N/A N/A current N/A N/A greenthread getcurrent N/A N/A current N/A self current_tasklet N/A N/A N/A N/A self SwitchTasklet N/A self current_tasklet current t N/A t 0.0 N/A N/A f self arg t N/A N/A N/A functools wraps f N/A ContextWrapper N/A N/A dispatch N/A dict N/A N/A key N/A ContextWrap val N/A N/A key val N/A N/A dispatch iteritems TallyTimings N/A N/A self N/A N/A N/A oldtimings N/A self sleeping N/A N/A self sleeping N/A N/A N/A self cur N/A N/A self Unwind N/A self cur N/A self timings N/A N/A tasklet N/A cur timings N/A N/A oldtimings iteritems N/A N/A N/A N/A self Unwind cur timings N/A N/A k v N/A N/A timings iteritems N/A N/A N/A k N/A self timings N/A N/A N/A N/A self timings N/A k v N/A N/A N/A cc ns tt ct callers N/A N/A self timings N/A k N/A cc N/A v N/A 0 N/A tt N/A v N/A 2 N/A ct N/A v N/A 3 N/A N/A k1 v1 N/A N/A N/A v N/A 4 iteritems N/A N/A N/A callers N/A k1 N/A N/A N/A callers get k1 0 v1 N/A N/A N/A self timings N/A k N/A cc ns tt ct callers N/A Unwind N/A N/A self cur timings N/A N/A N/A A function to unwind a 'cur' frame and tally the results N/A see profile.trace_dispatch_return() for details N/A N/A cur N/A -1 N/A N/A N/A rpt rit ret rfn frame rcur cur N/A frame_total N/A rit ret N/A N/A rfn timings N/A N/A N/A cc ns tt ct callers N/A timings N/A rfn N/A N/A N/A cc ns tt ct callers N/A 0 0 0 0 N/A N/A N/A ns N/A N/A ct N/A ct frame_total N/A cc N/A cc 1 N/A rcur N/A N/A N/A ppt pit pet pfn pframe pcur rcur N/A N/A pfn None N/A N/A pfn callers N/A N/A N/A callers N/A pfn N/A N/A callers N/A pfn 1 N/A N/A pfn N/A N/A N/A callers N/A pfn 1 N/A N/A timings N/A rfn N/A cc N/A ns 1 N/A tt rit ct callers N/A N/A ppt pit pet pfn pframe pcur rcur N/A rcur N/A ppt N/A pit rpt N/A pet frame_total pfn pframe pcur N/A cur rcur N/A cur N/A N/A run N/A N/A statement filename sort N/A None -1 N/A N/A Run statement under profiler optionally saving results in filename

    This function takes a single argument that can be passed to the
    "exec" statement, and an optional file name.  In all cases this
    routine attempts to "exec" its first argument and gather profiling
    statistics from the execution. If no file name is present, then this
    function automatically prints a simple profiling report, sorted by the
    standard name string (file/line/function-name) that is presented in
    each line.
     N/A prof N/A Profile N/A N/A N/A prof N/A N/A prof run statement N/A N/A N/A SystemExit N/A N/A N/A N/A filename None N/A N/A N/A N/A prof dump_stats filename N/A N/A N/A N/A prof print_stats sort N/A runctx N/A N/A statement globals locals filename N/A None N/A N/A Run statement under profiler, supplying your own globals and locals,
    optionally saving results in filename.

    statement and filename have the same semantics as profile.run
     N/A prof N/A Profile N/A N/A N/A prof N/A N/A prof runctx statement globals locals N/A N/A N/A SystemExit N/A N/A N/A N/A filename None N/A N/A N/A N/A prof dump_stats filename N/A N/A N/A N/A prof print_stats N/A