Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Return SubscriptLoad NameLoad Slice Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore BoolOpOr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Assign NameStore IfExp NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Slice Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Assign SubscriptStore AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Assign NameStore Dict Str Str Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A bottle N/A cProfile N/A os N/A pstats N/A re N/A sys N/A threading N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A N/A N/A StringIO StringIO N/A N/A N/A ImportError N/A io StringIO N/A VERSION 1.0.7 N/A __doc__ An easier way to use cProfile.

Outputs a simpler html view of profiled stats.
Able to show stats while the code is still running!

 N/A STATS_TEMPLATE <html>
    <head>
        <title>{{ title }} | cProfile Results</title>
    </head>
    <body>
        <pre>{{ !stats }}</pre>

        % if callers:
            <h2>Called By:</h2>
            <pre>{{ !callers }}</pre>

        % if callees:
            <h2>Called:</h2>
            <pre>{{ !callees }}</pre>
    </body>
</html> N/A SORT_KEY sort N/A FUNC_NAME_KEY func_name Stats N/A object N/A N/A Wrapper around pstats.Stats class. N/A IGNORE_FUNC_NAMES N/A function N/A DEFAULT_SORT_ARG cumulative N/A SORT_ARGS N/A ncalls tottime cumtime filename lineno calls time cumulative module nfl N/A STATS_LINE_REGEX (.*)\((.*)\)$ N/A HEADER_LINE_REGEX ncalls|tottime|cumtime __init__ N/A N/A self profile_output profile_obj N/A None None N/A N/A N/A self profile N/A profile_output profile_obj N/A N/A self stream N/A StringIO N/A N/A self stats N/A N/A pstats Stats N/A self profile stream N/A self stream N/A read_stream N/A N/A self N/A N/A N/A value N/A N/A N/A self stream getvalue N/A N/A N/A N/A self stream seek 0 N/A N/A N/A N/A self stream truncate N/A value N/A read N/A N/A self N/A N/A N/A output N/A N/A self read_stream N/A lines N/A N/A output splitlines True N/A N/A N/A join N/A map N/A self process_line lines N/A process_line N/A N/A cls line N/A N/A N/A N/A N/A re search N/A cls HEADER_LINE_REGEX line N/A N/A N/A key val N/A N/A N/A cls SORT_ARGS items N/A N/A url_link N/A N/A bottle template <a href='{{ url }}'>{{ key }}</a> url N/A N/A cls get_updated_href SORT_KEY val key key N/A line N/A N/A line replace key url_link N/A match N/A N/A re search N/A cls STATS_LINE_REGEX line N/A match N/A N/A prefix N/A N/A match group 1 N/A func_name N/A N/A match group 2 N/A N/A func_name N/A cls IGNORE_FUNC_NAMES N/A N/A url_link N/A N/A bottle template <a href='{{ url }}'>{{ func_name }}</a> url N/A N/A cls get_updated_href FUNC_NAME_KEY func_name func_name func_name N/A line N/A N/A bottle template {{ prefix }}({{ !url_link }})
 prefix prefix url_link url_link N/A line N/A classmethod get_updated_href N/A N/A cls key val N/A N/A N/A href ? N/A query N/A dict N/A N/A bottle request query N/A N/A query N/A key val N/A key N/A N/A query keys N/A N/A href N/A %s=%s& N/A key N/A query N/A key N/A N/A href N/A -1 N/A classmethod show N/A N/A self restriction N/A N/A N/A N/A N/A N/A self stats print_stats restriction N/A self N/A show_callers N/A N/A self func_name N/A N/A N/A N/A N/A N/A self stats print_callers func_name N/A self N/A show_callees N/A N/A self func_name N/A N/A N/A N/A N/A N/A self stats print_callees func_name N/A self N/A sort N/A N/A self sort N/A N/A N/A sort N/A sort N/A self DEFAULT_SORT_ARG N/A N/A N/A N/A self stats sort_stats sort N/A self N/A N/A CProfileV N/A object N/A __init__ N/A N/A self profile title address port N/A 127.0.0.1 4000 N/A N/A N/A self profile profile N/A N/A self title title N/A N/A self port port N/A N/A self address address N/A N/A self app N/A N/A bottle Bottle N/A N/A N/A N/A N/A self app route / N/A self route_handler N/A route_handler N/A N/A self N/A N/A N/A N/A self stats N/A Stats N/A self profile N/A func_name N/A N/A N/A N/A N/A bottle request query get FUNC_NAME_KEY N/A sort N/A N/A N/A N/A N/A bottle request query get SORT_KEY N/A N/A N/A N/A self stats sort sort N/A callers N/A func_name N/A N/A N/A N/A N/A self stats show_callers func_name read N/A callees N/A func_name N/A N/A N/A N/A N/A self stats show_callees func_name read N/A data N/A title stats callers callees N/A self title N/A N/A N/A N/A N/A N/A N/A self stats sort sort show func_name read callers callees N/A N/A N/A bottle template STATS_TEMPLATE data N/A start N/A N/A self N/A N/A N/A N/A N/A N/A self app run host N/A self address port N/A self port quiet True N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description An easier way to use cProfile. usage %(prog)s [--version] [-a ADDRESS] [-p PORT] scriptfile [arg] ... formatter_class N/A argparse RawTextHelpFormatter N/A N/A N/A parser add_argument --version action version version VERSION N/A N/A N/A parser add_argument -a --address type str default 127.0.0.1 help The address to listen on. (defaults to 127.0.0.1). N/A N/A N/A parser add_argument -p --port type int default 4000 help The port to listen on. (defaults to 4000). N/A N/A N/A parser add_argument -f --file type str help cProfile output to view.
If specified, the scriptfile provided will be ignored. N/A N/A N/A parser add_argument remainder nargs N/A argparse REMAINDER help The python script file to run and profile. metavar scriptfile N/A args N/A N/A parser parse_args N/A N/A N/A N/A sys argv N/A 1 N/A N/A N/A N/A parser print_help N/A N/A N/A sys exit 2 N/A info N/A [cProfileV]: cProfile output available at http://%s:%s N/A N/A args address N/A args port N/A N/A args file N/A N/A N/A N/A N/A sys stderr write N/A info N/A cprofilev N/A CProfileV N/A args file title N/A args file address N/A args address port N/A args port N/A N/A N/A cprofilev start N/A N/A N/A N/A sys argv N/A N/A args remainder N/A N/A N/A len N/A args remainder 0 N/A N/A N/A N/A parser print_help N/A N/A N/A sys exit 2 N/A profile N/A N/A cProfile Profile N/A progname N/A N/A args remainder 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 N/A N/A code N/A compile N/A N/A fp read progname exec N/A N/A N/A N/A TypeError SyntaxError N/A e N/A N/A N/A N/A N/A sys stderr write N/A [cProfileV]: there was a problem compiling your scriptfile. N/A N/A N/A parser print_help N/A N/A N/A sys exit 2 N/A N/A N/A N/A sys stderr write N/A info N/A globs N/A __file__ __name__ __package__ progname __main__ None N/A progthread N/A N/A threading Thread target N/A profile runctx args N/A code globs None N/A N/A N/A progthread setDaemon True N/A N/A N/A progthread start N/A cprofilev N/A CProfileV profile title progname address N/A args address port N/A args port N/A N/A N/A cprofilev start N/A N/A N/A __name__ __main__ N/A N/A N/A main