Module Import alias Expr Call AttributeLoad NameLoad attr Str Str TryExcept body Import alias Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad handlers ExceptHandler type NameLoad body Pass ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias Import alias Import alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad Call NameLoad Num keyword NameLoad Assign NameStore Call NameLoad Call NameLoad Num keyword NameLoad Assign NameStore Dict Str NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Dict Str Str decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad Str Assign NameStore Call NameLoad Str keyword Str keyword CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str decorator_list If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign NameStore BinOpMult Num NameLoad Assign NameStore BinOpMult NameLoad Num Assign NameStore ListComp Call NameLoad keyword BinOpMod Str NameLoad keyword Call NameLoad Call AttributeLoad NameLoad attr Num Num comprehension NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore ListComp Call NameLoad keyword BinOpMod Str NameLoad keyword Call NameLoad BinOpDiv Call AttributeLoad NameLoad attr Num Num Num comprehension NameStore Call NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad While NameLoad body Assign NameStore Num Assign NameStore BinOpDiv BinOpSub NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr keyword BinOpMod Str NameLoad attr For NameStore SubscriptLoad NameLoad Slice Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str For NameStore Call NameLoad NameLoad body Expr Call NameLoad BinOpMod Str BinOpAdd NameLoad Num Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Import alias Import alias Assign NameStore Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Print NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num comprehension NameStore AttributeLoad NameLoad attr Print BinOpMod Str NameLoad Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str SubscriptLoad NameLoad Index Str Print BinOpMod Str Call AttributeLoad NameLoad attr Str Num If NameLoad body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Print BinOpMod Str TupleLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call NameLoad NameLoad Num Print BinOpMod Str BinOpSub Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Expr Call NameLoad
N/A N/A warnings N/A N/A N/A warnings filterwarnings ignore .*Decimal objects natively N/A N/A N/A cdecimal N/A sys N/A N/A N/A sys modules N/A decimal cdecimal N/A N/A N/A ImportError N/A N/A sqlalchemy __version__ sqlalchemy Column Integer create_engine ForeignKey String Numeric sqlalchemy.orm Session relationship sqlalchemy.ext.declarative declarative_base N/A random N/A os decimal Decimal N/A Base N/A declarative_base Employee N/A Base N/A N/A __tablename__ employee N/A id N/A Column Integer primary_key True N/A name N/A Column N/A String 100 nullable False N/A type N/A Column N/A String 50 nullable False N/A __mapper_args__ N/A polymorphic_on type N/A Boss N/A Employee N/A N/A __tablename__ boss N/A id N/A Column Integer N/A ForeignKey employee.id primary_key True N/A golf_average N/A Column Numeric N/A __mapper_args__ N/A polymorphic_identity boss N/A Grunt N/A Employee N/A N/A __tablename__ grunt N/A id N/A Column Integer N/A ForeignKey employee.id primary_key True N/A savings N/A Column Numeric N/A employer_id N/A Column Integer N/A ForeignKey boss.id N/A employer N/A relationship Boss backref employees primaryjoin N/A N/A Boss id employer_id N/A __mapper_args__ N/A polymorphic_identity grunt N/A N/A N/A N/A N/A os path exists orm2010.db N/A N/A N/A N/A os remove orm2010.db N/A engine N/A create_engine sqlite:///orm2010.db N/A N/A N/A N/A Base metadata create_all engine N/A sess N/A Session engine runit N/A N/A status factor query_runs N/A 1 5 N/A N/A num_bosses N/A 100 factor N/A num_grunts N/A num_bosses 100 N/A bosses N/A N/A Boss name N/A Boss %d i golf_average N/A Decimal N/A N/A random randint 40 150 N/A i N/A range num_bosses N/A N/A N/A sess add_all bosses N/A N/A status N/A Added %d boss objects num_bosses N/A grunts N/A N/A Grunt name N/A Grunt %d i savings N/A Decimal N/A N/A N/A random randint 5000000 15000000 100 N/A i N/A range num_grunts N/A N/A status N/A Added %d grunt objects num_grunts N/A grunts N/A N/A batch_size 100 N/A batch_num N/A N/A num_grunts N/A len grunts batch_size N/A boss N/A N/A N/A N/A N/A N/A sess query Boss filter_by name N/A Boss %d batch_num first N/A grunt N/A grunts N/A 0 batch_size N/A N/A N/A grunt employer boss N/A grunts N/A grunts N/A batch_size N/A N/A N/A sess commit N/A N/A status Associated grunts w/ bosses and committed N/A i N/A range query_runs N/A N/A N/A status N/A Heavy query run #%d N/A i 1 N/A report N/A N/A grunt N/A N/A sess query Grunt N/A N/A N/A N/A report append N/A N/A grunt name N/A grunt savings N/A N/A grunt employer name N/A N/A grunt employer golf_average N/A N/A N/A sess close N/A run_with_profile N/A N/A runsnake dump N/A False False N/A N/A cProfile N/A pstats N/A filename orm2010.profile N/A N/A N/A N/A os path exists orm2010.profile N/A N/A N/A N/A os remove orm2010.profile status N/A N/A msg N/A N/A N/A msg N/A N/A N/A N/A cProfile runctx runit(status) N/A globals N/A locals filename N/A stats N/A N/A pstats Stats filename N/A counts_by_methname N/A dict N/A N/A N/A key N/A 2 N/A N/A N/A stats stats N/A key N/A 0 N/A key N/A stats stats N/A N/A SQLA Version: %s __version__ N/A N/A Total calls %d N/A stats total_calls N/A N/A Total cpu seconds: %.2f N/A stats total_tt N/A N/A Total execute calls: %d N/A counts_by_methname N/A <method 'execute' of 'sqlite3.Cursor' objects> N/A N/A Total executemany calls: %d N/A N/A counts_by_methname get <method 'executemany' of 'sqlite3.Cursor' objects> 0 N/A dump N/A N/A N/A N/A stats sort_stats time calls N/A N/A N/A stats print_stats N/A runsnake N/A N/A N/A N/A os system N/A runsnake %s filename N/A run_with_time N/A N/A N/A N/A N/A time N/A now N/A N/A time time status N/A N/A msg N/A N/A N/A N/A %d - %s N/A N/A N/A N/A time time now msg N/A N/A N/A runit status 10 N/A N/A Total time: %d N/A N/A N/A time time now N/A N/A N/A __name__ __main__ N/A N/A argparse N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument --profile action store_true help run shorter test suite w/ cprofilng N/A N/A N/A parser add_argument --dump action store_true help dump full call profile (implies --profile) N/A N/A N/A parser add_argument --runsnake action store_true help invoke runsnakerun (implies --profile) N/A args N/A N/A parser parse_args N/A N/A args profile N/A N/A args profile N/A args dump N/A args runsnake N/A N/A args profile N/A N/A N/A run_with_profile runsnake N/A args runsnake dump N/A args dump N/A N/A N/A run_with_time