Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str 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 NameParam defaults NameLoad Num 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 NameLoad decorator_list FunctionDef arguments args defaults body Print Str Print Str decorator_list If Call NameLoad NameLoad Str body FunctionDef arguments args NameParam defaults AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Return BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list Assign NameStore Num TryExcept body Import alias Assign NameStore Lambda arguments args defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call NameLoad Return BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list Assign NameStore Num handlers ExceptHandler type NameLoad body Pass ClassDef bases body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Return Call NameLoad Call NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore BinOpSub BinOpSub BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr BinOpSub BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad orelse Assign AttributeStore NameLoad attr BinOpSub Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub BinOpDiv Call NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr BinOpDiv Call NameLoad Num orelse Assign AttributeStore NameLoad attr BinOpSub BinOpDiv Call NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad orelse Assign AttributeStore NameLoad attr BinOpSub Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr CompareIsNot AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assert CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assert BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad NameLoad Num Num NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad BinOpAdd NameLoad Num NameLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad TupleLoad Num Num Num Num Dict Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore TupleLoad Str Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad NameLoad Num Num NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad BinOpAdd NameLoad Num NameLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad TupleLoad Num Num Num Num Dict Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIsNot NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assert CompareIs NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Num orelse Assign SubscriptStore NameLoad Index NameLoad Num Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad BinOpSub NameLoad Num BinOpAdd NameLoad NameLoad NameLoad NameLoad Return Num decorator_list Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body If SubscriptLoad AttributeLoad NameLoad attr Index Num body Return Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num NameLoad If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub Call NameLoad AttributeLoad NameLoad attr While SubscriptLoad AttributeLoad NameLoad attr Index Num body Expr Call SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Num Assign AttributeStore NameLoad attr BinOpSub Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Import alias Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict For TupleStore NameStore TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Exec NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Return Call NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num TryFinally body Return Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad NameLoad body Assign NameStore Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body For NameStore Call NameLoad NameLoad body Expr Call NameLoad Num decorator_list Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpSub NameLoad NameLoad If NameLoad body Print Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpSub NameLoad NameLoad If NameLoad body Print Str NameLoad Assign NameStore Num Assign NameStore Num For TupleStore TupleStore NameStore NameStore NameStore TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad TupleLoad Str Str body AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad If NameLoad body Print Str NameLoad Print Str NameLoad If CompareNotEq NameLoad BinOpAdd NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore BinOpDiv BinOpDiv BinOpSub NameLoad NameLoad Num NameLoad If NameLoad body Print Str NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args defaults vararg body Print Str decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Num If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Slice Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Slice NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Dict Str Str Str NameLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Class for profiling Python code. N/A sys N/A os N/A time N/A marshal optparse OptionParser N/A __all__ N/A run runctx help Profile 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 sort N/A None -1 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 sort N/A help N/A N/A N/A N/A N/A Documentation for the profile module can be found  N/A in the Python Library Reference, section 'The Python Profiler'. N/A N/A N/A hasattr os times N/A _get_time_times N/A N/A timer N/A N/A os times N/A N/A t N/A timer N/A N/A N/A t N/A 0 N/A t N/A 1 N/A N/A _has_res 0 N/A N/A N/A resource N/A resgetrusage N/A N/A N/A N/A N/A N/A resource getrusage N/A resource RUSAGE_SELF _get_time_resource N/A N/A timer N/A resgetrusage N/A N/A t N/A timer N/A N/A N/A t N/A 0 N/A t N/A 1 N/A N/A _has_res 1 N/A N/A N/A ImportError N/A N/A Profile N/A N/A N/A Profiler class.

    self.cur is always a tuple.  Each such tuple corresponds to a stack
    frame that is currently active (self.cur[-2]).  The following are the
    definitions of its members.  We use this external "parallel stack" to
    avoid contaminating the program that we are profiling. (old profiler
    used to write into the frames local dictionary!!) Derived classes
    can change the definition of some entries, as long as they leave
    [-2:] intact (frame and previous tuple).  In case an internal error is
    detected, the -3 element is used as the function name.

    [ 0] = Time that needs to be charged to the parent frame's function.
           It is used so that a function call will not have to access the
           timing data for the parent frame.
    [ 1] = Total time spent in this frame's function, excluding time in
           subfunctions (this latter is tallied in cur[2]).
    [ 2] = Total time spent in subfunctions, excluding time executing the
           frame's function (this latter is tallied in cur[1]).
    [-3] = Name of the function that corresponds to this frame.
    [-2] = Actual frame that we correspond to (used to sync exception handling).
    [-1] = Our parent 6-tuple (corresponds to frame.f_back).

    Timing data for each function is stored as a 5-tuple in the dictionary
    self.timings[].  The index is always the name stored in self.cur[-3].
    The following are the definitions of the members:

    [0] = The number of times this function was called, not counting direct
          or indirect recursion,
    [1] = Number of times this function appears on the stack, minus one
    [2] = Total time spent internal to this function
    [3] = Cumulative time that this function was present on the stack.  In
          non-recursive functions, this is the total execution time from start
          to finish of each invocation of a function, including time spent in
          all subfunctions.
    [4] = A dictionary indicating for each function name, the number of times
          it was called by us.
     N/A bias 0 __init__ N/A N/A self timer bias N/A None None N/A N/A N/A self timings N/A N/A N/A self cur None N/A N/A self cmd N/A N/A self c_func_name N/A N/A bias None N/A N/A bias N/A self bias N/A N/A self bias bias N/A N/A timer N/A N/A _has_res N/A N/A N/A self timer resgetrusage N/A N/A self dispatcher N/A self trace_dispatch N/A N/A self get_time _get_time_resource N/A N/A N/A hasattr time clock N/A N/A N/A self timer N/A self get_time N/A time clock N/A N/A self dispatcher N/A self trace_dispatch_i N/A N/A N/A hasattr os times N/A N/A N/A self timer N/A os times N/A N/A self dispatcher N/A self trace_dispatch N/A N/A self get_time _get_time_times N/A N/A N/A self timer N/A self get_time N/A time time N/A N/A self dispatcher N/A self trace_dispatch_i N/A N/A N/A self timer timer N/A t N/A N/A self timer N/A N/A N/A length N/A len t N/A N/A N/A TypeError N/A N/A N/A self get_time timer N/A N/A self dispatcher N/A self trace_dispatch_i N/A N/A N/A length 2 N/A N/A N/A self dispatcher N/A self trace_dispatch N/A N/A N/A self dispatcher N/A self trace_dispatch_l get_time_timer N/A N/A timer sum N/A timer sum N/A N/A N/A sum N/A timer N/A N/A N/A self get_time get_time_timer N/A N/A self t N/A N/A self get_time N/A N/A N/A self simulate_call profiler N/A trace_dispatch N/A N/A self frame event arg N/A N/A N/A timer N/A self timer N/A t N/A timer N/A t N/A N/A N/A N/A t N/A 0 N/A t N/A 1 N/A self t N/A self bias N/A N/A event c_call N/A N/A N/A self c_func_name N/A arg __name__ N/A N/A N/A N/A self dispatch N/A event self frame t N/A N/A t N/A timer N/A N/A self t N/A N/A t N/A 0 N/A t N/A 1 N/A N/A r N/A timer N/A N/A self t N/A N/A N/A r N/A 0 N/A r N/A 1 t N/A trace_dispatch_i N/A N/A self frame event arg N/A N/A N/A timer N/A self timer N/A t N/A N/A N/A timer N/A self t N/A self bias N/A N/A event c_call N/A N/A N/A self c_func_name N/A arg __name__ N/A N/A N/A N/A self dispatch N/A event self frame t N/A N/A N/A self t N/A timer N/A N/A N/A self t N/A N/A timer t N/A trace_dispatch_mac N/A N/A self frame event arg N/A N/A N/A timer N/A self timer N/A t N/A N/A N/A N/A timer 60.0 N/A self t N/A self bias N/A N/A event c_call N/A N/A N/A self c_func_name N/A arg __name__ N/A N/A N/A N/A self dispatch N/A event self frame t N/A N/A N/A self t N/A N/A timer 60.0 N/A N/A N/A self t N/A N/A N/A timer 60.0 t N/A trace_dispatch_l N/A N/A self frame event arg N/A N/A N/A get_time N/A self get_time N/A t N/A N/A N/A get_time N/A self t N/A self bias N/A N/A event c_call N/A N/A N/A self c_func_name N/A arg __name__ N/A N/A N/A N/A self dispatch N/A event self frame t N/A N/A N/A self t N/A get_time N/A N/A N/A self t N/A N/A get_time t N/A trace_dispatch_exception N/A N/A self frame t N/A N/A N/A N/A rpt rit ret rfn rframe rcur N/A self cur N/A N/A N/A rframe frame rcur N/A N/A N/A N/A self trace_dispatch_return rframe t N/A N/A self cur N/A rpt N/A rit t ret rfn rframe rcur N/A 1 N/A trace_dispatch_call N/A N/A self frame t N/A N/A N/A N/A N/A self cur N/A N/A frame f_back N/A N/A self cur N/A -2 N/A N/A N/A rpt rit ret rfn rframe rcur N/A self cur N/A N/A N/A isinstance rframe N/A Profile fake_frame N/A N/A N/A N/A rframe f_back N/A frame f_back N/A Bad call rfn rframe N/A rframe f_back frame N/A frame f_back N/A N/A N/A self trace_dispatch_return rframe 0 N/A N/A N/A N/A self cur None N/A N/A frame f_back N/A N/A self cur N/A -2 N/A Bad call N/A N/A self cur N/A -3 N/A fcode N/A frame f_code N/A fn N/A N/A fcode co_filename N/A fcode co_firstlineno N/A fcode co_name N/A N/A self cur N/A t 0 0 fn frame N/A self cur N/A timings N/A self timings N/A N/A fn timings N/A N/A N/A cc ns tt ct callers N/A timings N/A fn N/A N/A timings N/A fn N/A cc N/A ns 1 tt ct callers N/A N/A N/A timings N/A fn N/A 0 0 0 0 N/A N/A 1 N/A trace_dispatch_c_call N/A N/A self frame t N/A N/A N/A fn N/A 0 N/A self c_func_name N/A N/A self cur N/A t 0 0 fn frame N/A self cur N/A timings N/A self timings N/A N/A fn timings N/A N/A N/A cc ns tt ct callers N/A timings N/A fn N/A N/A timings N/A fn N/A cc N/A ns 1 tt ct callers N/A N/A N/A timings N/A fn N/A 0 0 0 0 N/A N/A 1 N/A trace_dispatch_return N/A N/A self frame t N/A N/A N/A N/A frame N/A N/A self cur N/A -2 N/A N/A N/A frame N/A N/A N/A self cur N/A -2 f_back N/A Bad return N/A N/A self cur N/A -3 N/A N/A N/A self trace_dispatch_return N/A N/A self cur N/A -2 0 N/A N/A rpt rit ret rfn frame rcur N/A self cur N/A rit N/A rit t N/A frame_total N/A rit ret N/A N/A ppt pit pet pfn pframe pcur rcur N/A N/A self cur N/A ppt N/A pit rpt N/A pet frame_total pfn pframe pcur N/A timings N/A self timings N/A N/A cc ns tt ct callers N/A timings N/A rfn N/A N/A ns N/A N/A ct N/A ct frame_total N/A cc N/A cc 1 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 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 1 N/A N/A dispatch N/A call exception return c_call c_exception c_return trace_dispatch_call trace_dispatch_exception trace_dispatch_return trace_dispatch_c_call trace_dispatch_return trace_dispatch_return set_cmd N/A N/A self cmd N/A N/A N/A N/A N/A self cur N/A -1 N/A N/A N/A N/A self cmd cmd N/A N/A N/A self simulate_call cmd N/A fake_code N/A N/A __init__ N/A N/A self filename line name N/A N/A N/A N/A self co_filename filename N/A N/A self co_line line N/A N/A self co_name name N/A N/A self co_firstlineno 0 N/A __repr__ N/A N/A self N/A N/A N/A N/A repr N/A N/A self co_filename N/A self co_line N/A self co_name N/A N/A fake_frame N/A N/A __init__ N/A N/A self code prior N/A N/A N/A N/A self f_code code N/A N/A self f_back prior N/A N/A simulate_call N/A N/A self name N/A N/A N/A code N/A N/A self fake_code profile 0 name N/A N/A self cur N/A N/A pframe N/A N/A self cur N/A -2 N/A N/A pframe None N/A frame N/A N/A self fake_frame code pframe N/A N/A N/A N/A self dispatch N/A call self frame 0 N/A simulate_cmd_complete N/A N/A self N/A N/A N/A get_time N/A self get_time N/A t N/A N/A get_time N/A self t N/A N/A N/A self cur N/A -1 N/A N/A N/A N/A N/A self dispatch N/A return self N/A N/A self cur N/A -2 t N/A t 0 N/A N/A self t N/A N/A get_time t N/A print_stats N/A N/A self sort N/A -1 N/A N/A pstats N/A N/A N/A N/A N/A N/A N/A N/A N/A pstats Stats self strip_dirs sort_stats sort print_stats N/A dump_stats N/A N/A self file N/A N/A N/A f N/A open file wb N/A N/A N/A self create_stats N/A N/A N/A marshal dump N/A self stats f N/A N/A N/A f close N/A create_stats N/A N/A self N/A N/A N/A N/A N/A self simulate_cmd_complete N/A N/A N/A self snapshot_stats N/A snapshot_stats N/A N/A self N/A N/A N/A N/A self stats N/A N/A N/A func N/A cc ns tt ct callers N/A N/A N/A self timings iteritems N/A N/A callers N/A N/A callers copy N/A nc 0 N/A callcnt N/A N/A callers itervalues N/A N/A nc callcnt N/A N/A N/A self stats N/A func N/A cc nc tt ct callers N/A run N/A N/A self cmd N/A N/A N/A __main__ N/A dict N/A __main__ __dict__ N/A N/A N/A self runctx cmd dict dict N/A runctx N/A N/A self cmd globals locals N/A N/A N/A N/A N/A self set_cmd cmd N/A N/A N/A sys setprofile N/A self dispatcher N/A N/A N/A cmd globals locals N/A N/A N/A N/A sys setprofile None N/A self N/A runcall N/A N/A self func N/A args kw N/A N/A N/A N/A self set_cmd N/A repr func N/A N/A N/A sys setprofile N/A self dispatcher N/A N/A N/A N/A func args kw N/A N/A N/A N/A sys setprofile None N/A calibrate N/A N/A self m verbose N/A 0 N/A N/A N/A N/A self __class__ Profile N/A N/A N/A TypeError Subclasses must override .calibrate(). N/A saved_bias N/A self bias N/A N/A self bias 0 N/A N/A N/A N/A N/A self _calibrate_inner m verbose N/A N/A N/A self bias saved_bias N/A _calibrate_inner N/A N/A self m verbose N/A N/A N/A get_time N/A self get_time f1 N/A N/A n N/A N/A N/A i N/A range n N/A N/A x 1 N/A f N/A N/A m f1 N/A f1 N/A N/A i N/A range m N/A N/A N/A f1 100 N/A N/A N/A f m N/A t0 N/A get_time N/A N/A f m N/A t1 N/A get_time N/A elapsed_noprofile N/A t1 t0 N/A verbose N/A N/A elapsed time without profiling = elapsed_noprofile N/A p N/A Profile N/A t0 N/A get_time N/A N/A N/A p runctx f(m) N/A globals N/A locals N/A t1 N/A get_time N/A elapsed_profile N/A t1 t0 N/A verbose N/A N/A elapsed time with profiling = elapsed_profile N/A total_calls 0.0 N/A reported_time 0.0 N/A N/A N/A filename line funcname N/A cc ns tt ct callers N/A N/A N/A p timings items N/A N/A N/A funcname N/A f f1 N/A N/A total_calls cc N/A reported_time tt N/A verbose N/A N/A 'CPU seconds' profiler reported = reported_time N/A total # calls = total_calls N/A N/A total_calls N/A m 1 N/A N/A N/A ValueError N/A internal error: total calls = %d total_calls N/A mean N/A N/A N/A reported_time elapsed_noprofile 2.0 total_calls N/A verbose N/A N/A mean stopwatch overhead per profile event = mean N/A mean N/A N/A Stats N/A N/A N/A args N/A N/A Report generating functions are in the "pstats" module N/A main N/A N/A N/A N/A N/A usage profile.py [-o output_file_path] [-s sort] scriptfile [arg] ... N/A parser N/A OptionParser usage usage N/A N/A parser allow_interspersed_args False N/A N/A N/A parser add_option -o --outfile dest outfile help Save stats to <outfile> default None N/A N/A N/A parser add_option -s --sort dest sort help Sort order when printing to stdout, based on pstats.Stats class default -1 N/A N/A N/A N/A sys argv N/A 1 N/A N/A N/A N/A parser print_usage N/A N/A N/A sys exit 2 N/A N/A options args N/A N/A parser parse_args N/A N/A N/A sys argv N/A args N/A N/A N/A len args 0 N/A N/A progname N/A args N/A 0 N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path dirname progname N/A N/A open progname rb fp N/A N/A code N/A compile N/A N/A fp read progname exec N/A globs N/A __file__ __name__ __package__ progname __main__ None N/A N/A runctx code globs None N/A options outfile N/A options sort N/A N/A N/A N/A parser print_usage N/A parser N/A N/A N/A __name__ __main__ N/A N/A N/A main