Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpDiv BinOpMult NameLoad Num NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore BinOpMult Num Num Assign NameStore Str Assign NameStore Num Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore BoolOpAnd Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Break orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Break orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If CompareGtE AttributeLoad NameLoad attr Num body Return NameLoad Return CompareLt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If NameLoad body Assign NameStore BinOpAdd Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult Num BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMult Num BinOpSub NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body If AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Num orelse If CompareEq NameLoad Str body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Num If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse AugAssignAdd NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad BinOpAdd NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Num If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr orelse If CompareIn NameLoad TupleLoad Str Str Str body Assign NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIn NameLoad TupleLoad Str Str body Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMult Num BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult Num BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If CompareLtELt Num NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Return orelse With AttributeLoad NameLoad attr body For NameStore Call NameLoad AttributeLoad NameLoad attr body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad Return Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr Call NameLoad BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword BinOpMult Num Num keyword NameLoad keyword AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return TupleLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareLtE Call NameLoad NameLoad AttributeLoad NameLoad attr body Return TupleLoad NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr Num body For NameStore Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareLtE Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr Num body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareLtE Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Delete SubscriptDel Call AttributeLoad NameLoad attr Slice Num Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpMult Num BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults TupleLoad UnaryOpUSub SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict With AttributeLoad NameLoad attr body Assign NameStore ListComp ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num AugAssignAdd SubscriptStore NameLoad Index Num Num AugAssignAdd SubscriptStore NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num ListLoad Num SubscriptLoad NameLoad Index Num Dict Expr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareLt NameLoad Num body Return Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareLtE NameLoad Num body Return With AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr If CompareLtE NameLoad Num body Continue For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num While BoolOpAnd CompareIsNot NameLoad NameLoad CompareLt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Break Assign NameStore AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults TupleLoad UnaryOpUSub Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd NameLoad UnaryOpNot BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd BinOpMod Str NameLoad SubscriptLoad NameLoad Slice Call NameLoad NameLoad Break Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Return NameLoad If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareLtE NameLoad Num body Return NameLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AugAssignSub NameStore Num If CompareLtE NameLoad Num body Break Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpMult Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore BinOpMult BinOpMod BinOpFloorDiv NameLoad NameLoad NameLoad NameLoad Return BinOpMod NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore ListComp BinOpMod NameLoad NameLoad comprehension NameStore Call NameLoad Num BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults UnaryOpUSub Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BinOpAdd Call NameLoad NameLoad AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad If CompareNotEq Call AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpMult NameLoad Num Call AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad Assign NameStore ListLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad Num Raise If CompareIsNot NameLoad NameLoad body For NameStore NameLoad body Expr Yield NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg body With AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Global identifier Assign NameStore NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Return BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return If Call AttributeLoad NameLoad attr Call NameLoad Num keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body If CompareNotIn Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad
N/A N/A Userland RPC instrumentation for App Engine. __future__ with_statement N/A datetime N/A logging N/A os N/A random N/A re N/A sys N/A threading N/A time N/A warnings google.appengine.api apiproxy_stub_map google.appengine.api lib_config google.appengine.api memcache google.appengine.api quota google.appengine.api users google.appengine.ext.appstats datamodel_pb google.appengine.ext.appstats formatting _to_micropennies_per_op N/A N/A pennies per N/A N/A N/A The price of a single op in micropennies. N/A N/A N/A pennies 1000000 per N/A ConfigDefaults N/A object N/A N/A Configurable constants.

  To override appstats configuration valuess, define values like this
  in your appengine_config.py file (in the root of your app):

    appstats_MAX_STACK = 5
    appstats_MAX_LOCALS = 0

  More complete documentation for all configurable constants can be
  found in the file sample_appengine_config.py.
   N/A DEBUG False N/A DUMP_LEVEL -1 N/A SHELL_OK N/A N/A N/A N/A os getenv SERVER_SOFTWARE startswith Dev N/A DEFAULT_SCRIPT print 'Hello, world.' N/A KEY_DISTANCE 100 N/A KEY_MODULUS 1000 N/A KEY_NAMESPACE __appstats__ N/A KEY_PREFIX __appstats__ N/A KEY_TEMPLATE :%06d N/A PART_SUFFIX :part N/A FULL_SUFFIX :full N/A LOCK_SUFFIX <lock> N/A MAX_STACK 10 N/A MAX_LOCALS 10 N/A MAX_REPR 100 N/A MAX_DEPTH 10 N/A RE_STACK_BOTTOM dev_appserver\.py N/A RE_STACK_SKIP recording\.py|apiproxy_stub_map\.py N/A LOCK_TIMEOUT 1 N/A TZOFFSET N/A 8 3600 N/A stats_url /_ah/stats N/A RECORD_FRACTION 1.0 N/A FILTER_LIST N/A N/A DATASTORE_DETAILS False N/A CALC_RPC_COSTS False N/A DATASTORE_READ_OP_COST N/A _to_micropennies_per_op 7 100000 N/A DATASTORE_WRITE_OP_COST N/A _to_micropennies_per_op 10 100000 N/A DATASTORE_SMALL_OP_COST N/A _to_micropennies_per_op 1 100000 N/A MAIL_RECIPIENT_COST N/A _to_micropennies_per_op 1 1000 N/A CHANNEL_CREATE_COST N/A _to_micropennies_per_op 1 100 N/A XMPP_STANZA_COST N/A _to_micropennies_per_op 10 100000 should_record N/A N/A env N/A N/A N/A Return a bool indicating whether we should record this request.

    Args:
      env: The CGI or WSGI environment dict.

    Returns:
      True if this request should be recorded, False if not.

    The default implementation returns True iff the request matches
    FILTER_LIST (see above) *and* random.random() < RECORD_FRACTION.
     N/A N/A config FILTER_LIST N/A N/A N/A config DEBUG N/A N/A N/A N/A logging debug FILTER_LIST: %r N/A config FILTER_LIST N/A filter_dict N/A config FILTER_LIST N/A N/A N/A key regex N/A N/A filter_dict iteritems N/A N/A negated N/A N/A isinstance regex str N/A N/A regex startswith ! N/A negated N/A N/A regex N/A regex N/A 1 N/A value N/A N/A env get key N/A N/A N/A bool N/A N/A re match regex value negated N/A N/A N/A config DEBUG N/A N/A N/A N/A logging debug No match on %r for %s=%r regex key value N/A N/A N/A N/A config DEBUG N/A N/A N/A N/A logging debug Match on %r filter_dict N/A N/A N/A N/A config DEBUG N/A N/A N/A N/A logging debug Non-empty FILTER_LIST, but no filter matches N/A False N/A N/A N/A config RECORD_FRACTION 1.0 N/A N/A True N/A N/A N/A N/A random random N/A config RECORD_FRACTION N/A normalize_path N/A N/A path N/A N/A N/A Transform a path to a canonical key for that path.

    Args:
      path: A string, e.g. '/foo/bar/12345'.

    Returns:
      A string derived from path, e.g. '/foo/bar/X'.
     N/A path N/A extract_key N/A N/A request N/A N/A N/A Extract a canonical key from a StatsProto instance.

    This default implementation calls config.normalize_path() on the
    path returned by request.http_path(), and then prepends the HTTP
    method and a space, unless the method is 'GET', in which case the
    method and the space are omitted (so as to display a more compact
    key in the user interface).

    Args:
      request: a StatsProto instance.

    Returns:
      A string, typically something like '/foo/bar/X' or 'POST /foo/bar'.
     N/A key N/A N/A config normalize_path N/A N/A request http_path N/A N/A N/A N/A request http_method GET N/A N/A key N/A %s %s N/A N/A N/A request http_method key N/A key N/A N/A N/A config N/A N/A lib_config register appstats N/A ConfigDefaults __dict__ Recorder N/A object N/A N/A In-memory state for the current request.

  An instance is created soon after the request is received, and
  set as the Recorder for the current request in the
  RequestLocalRecorderProxy in the global variable 'recorder_proxy'.  It
  collects information about the request and about individual RPCs
  made during the request, until just before the response is sent out,
  when the recorded information is saved to memcache by calling the
  save() method.
   __init__ N/A N/A self env N/A N/A N/A Constructor.

    Args:
      env: A dict giving the CGI or WSGI environment.
     N/A N/A self env N/A dict N/A kv N/A kv N/A N/A env iteritems N/A isinstance N/A kv N/A 1 str N/A N/A self start_timestamp N/A N/A time time N/A N/A self http_status 0 N/A N/A self end_timestamp N/A self start_timestamp N/A N/A self traces N/A N/A N/A self pending N/A N/A N/A self overhead N/A N/A N/A time time N/A self start_timestamp N/A N/A self _lock N/A N/A threading Lock N/A http_method N/A N/A self N/A N/A N/A Return the request method, e.g. 'GET' or 'POST'. N/A N/A N/A N/A self env get REQUEST_METHOD GET N/A http_path N/A N/A self N/A N/A N/A Return the request path, e.g. '/' or '/foo/bar', excluding the query. N/A N/A N/A N/A self env get PATH_INFO N/A http_query N/A N/A self N/A N/A N/A Return the query string, if any, with '?' prefix.

    If there is no query string, an empty string is returned (i.e. not '?').
     N/A query_string N/A N/A N/A self env get QUERY_STRING N/A query_string N/A N/A query_string N/A ? query_string N/A query_string N/A record_custom_event N/A N/A self label data start end N/A None None None N/A N/A Record a custom event.

    Args:
      label: A string to use as event label; a 'custom.' prefix will be added.
      data: Optional value to record.  This can be anything; the value
        will be formatted using format_value() before it is recorded.
      start: time.time() of the start of the time range, default now. Supply
        start when you want a range intead of a 0ms duration event.
      end: time.time() of the end of the time range, default now. Supply end
        when the range was in the past or when you want the range to match other
        monitoring/analytics. Supplying end without start is an error.
     N/A pre_now N/A N/A time time N/A sreq N/A format_value data N/A now N/A N/A time time N/A N/A end N/A start N/A N/A N/A ValueError Please specify a start time along with the end time. N/A start N/A start pre_now N/A end N/A end pre_now N/A delta N/A int N/A 1000 N/A start N/A self start_timestamp N/A duration N/A int N/A 1000 N/A end start N/A trace N/A N/A datamodel_pb IndividualRpcStatsProto N/A N/A N/A self get_call_stack trace N/A N/A N/A trace set_service_call_name N/A custom. label N/A N/A N/A trace set_request_data_summary sreq N/A N/A N/A trace set_start_offset_milliseconds delta N/A N/A N/A trace set_duration_milliseconds duration N/A N/A self _lock N/A N/A N/A N/A N/A self traces append trace N/A N/A self overhead N/A now pre_now N/A record_datastore_details N/A N/A self call request response trace N/A N/A N/A Records additional information relating to datastore RPCs.

    Parses requests and responses of datastore related RPCs, and records
    the primary keys of entities that are put into the datastore or
    fetched from the datastore. Non-datastore RPCs are ignored. Keys are
    recorded in the form of Reference protos. Currently the information
    is logged for the following calls: Get, Put, RunQuery and Next. The
    code may be extended in the future to cover more RPC calls. In
    addition to the entity keys, useful information specific to each
    call is recorded. E.g., for queries, the entity kind and cursor
    information is recorded; For gets, a flag indicating if the
    requested entity key is present or not is recorded.

    Also collects RPC costs.

    Args:
      call: The call name, e.g. 'Get'.
      request: The request protocol message corresponding to the call.
      response: The response protocol message corresponding to the call.
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A call Put N/A N/A N/A N/A self record_put_details response trace N/A N/A N/A call Delete N/A N/A N/A N/A self record_delete_details response trace N/A N/A N/A call Commit N/A N/A N/A N/A self record_commit_details response trace N/A N/A N/A call N/A RunQuery Next N/A N/A N/A N/A self record_query_details call request response trace N/A N/A N/A call Get N/A N/A N/A N/A self record_get_details request response trace N/A N/A N/A call AllocateIds N/A N/A N/A N/A self record_allocate_ids_details trace N/A record_put_details N/A N/A self response trace N/A N/A N/A Records additional put details based on config options.

    Details include: Keys of entities written and cost
    information for the Put RPC.

    Args:
      response: The response protocol message of the Put RPC call.
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A config DATASTORE_DETAILS N/A N/A details N/A N/A trace mutable_datastore_details N/A key N/A N/A response key_list N/A N/A detail N/A N/A details add_keys_written N/A N/A N/A detail CopyFrom key N/A N/A config CALC_RPC_COSTS N/A N/A writes N/A N/A N/A N/A N/A response cost entity_writes N/A N/A N/A N/A response cost index_writes N/A N/A N/A trace set_call_cost_microdollars N/A writes N/A config DATASTORE_WRITE_OP_COST N/A N/A _add_billed_op_to_trace trace writes N/A N/A datamodel_pb BilledOpProto DATASTORE_WRITE N/A record_delete_details N/A N/A self response trace N/A N/A N/A Records cost information for the Delete RPC.

    Args:
      response: The response protocol message of the Delete RPC call.
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A config CALC_RPC_COSTS N/A N/A writes N/A N/A N/A N/A N/A response cost entity_writes N/A N/A N/A N/A response cost index_writes N/A N/A N/A trace set_call_cost_microdollars N/A writes N/A config DATASTORE_WRITE_OP_COST N/A N/A _add_billed_op_to_trace trace writes N/A N/A datamodel_pb BilledOpProto DATASTORE_WRITE N/A record_commit_details N/A N/A self response trace N/A N/A N/A Records cost information for the Commit RPC.

    Args:
      response: The response protocol message of the Commit RPC call.
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A config CALC_RPC_COSTS N/A N/A cost N/A N/A response cost N/A writes N/A N/A N/A N/A N/A N/A cost commitcost requested_entity_puts N/A N/A N/A N/A cost commitcost requested_entity_deletes N/A N/A cost index_writes N/A N/A N/A trace set_call_cost_microdollars N/A writes N/A config DATASTORE_WRITE_OP_COST N/A N/A _add_billed_op_to_trace trace writes N/A N/A datamodel_pb BilledOpProto DATASTORE_WRITE N/A record_get_details N/A N/A self request response trace N/A N/A N/A Records additional get details based on config options.

    Details include: Keys of entities requested, whether or not the requested
    key was successfully fetched, and cost information for the Get RPC.

    Args:
      request: The request protocol message of the Get RPC call.
      response: The response protocol message of the Get RPC call.
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A config DATASTORE_DETAILS N/A N/A details N/A N/A trace mutable_datastore_details N/A key N/A N/A request key_list N/A N/A detail N/A N/A details add_keys_read N/A N/A N/A detail CopyFrom key N/A entity_present N/A N/A response entity_list N/A N/A N/A N/A details add_get_successful_fetch N/A N/A entity_present has_entity N/A N/A config CALC_RPC_COSTS N/A N/A keys_to_read N/A len N/A N/A request key_list N/A N/A N/A trace set_call_cost_microdollars N/A keys_to_read N/A config DATASTORE_READ_OP_COST N/A N/A _add_billed_op_to_trace trace keys_to_read N/A N/A datamodel_pb BilledOpProto DATASTORE_READ N/A record_query_details N/A N/A self call request response trace N/A N/A N/A Records additional query details based on config options.

    Details include: Keys of entities fetched by a datastore query and cost
    information.

    Information is recorded for both the RunQuery and Next calls.
    For RunQuery calls, we record the entity kind and ancestor (if
    applicable) and cursor information (which can help correlate
    the RunQuery with a subsequent Next call). For Next calls, we
    record cursor information of the Request (which helps associate
    this call with the previous RunQuery/Next call), and the Response
    (which helps associate this call with the subsequent Next call).
    For key only queries, entity keys are not recorded since entities
    are not actually fetched. In the future, we might want to record
    the entities but also record a flag indicating whether this is a
    key only query.

    Args:
      call: The call name, e.g. 'RunQuery' or 'Next'
      request: The request protocol message of the RPC call.
      response: The response protocol message of the RPC call.
      trace: IndividualStatsProto where information must be recorded.
     N/A details N/A N/A trace mutable_datastore_details N/A N/A N/A N/A response small_ops N/A N/A entity N/A N/A response result_list N/A N/A detail N/A N/A details add_keys_read N/A N/A N/A detail CopyFrom N/A N/A entity key N/A N/A call RunQuery N/A N/A N/A config DATASTORE_DETAILS N/A N/A N/A N/A request has_kind N/A N/A N/A N/A details set_query_kind N/A N/A request kind N/A N/A N/A request has_ancestor N/A N/A ancestor N/A N/A details mutable_query_ancestor N/A N/A N/A ancestor CopyFrom N/A N/A request ancestor N/A N/A N/A response has_cursor N/A N/A N/A N/A details set_query_nextcursor N/A N/A N/A N/A response cursor cursor N/A baseline_reads 1 N/A N/A N/A call Next N/A N/A N/A config DATASTORE_DETAILS N/A N/A N/A N/A details set_query_thiscursor N/A N/A N/A N/A request cursor cursor N/A N/A N/A response has_cursor N/A N/A N/A N/A details set_query_nextcursor N/A N/A N/A N/A response cursor cursor N/A baseline_reads 0 N/A N/A config CALC_RPC_COSTS N/A N/A num_results N/A N/A len N/A N/A response result_list N/A N/A response skipped_results N/A cost_micropennies N/A N/A config DATASTORE_READ_OP_COST baseline_reads N/A N/A N/A response small_ops N/A N/A cost_micropennies N/A N/A config DATASTORE_SMALL_OP_COST num_results N/A N/A N/A trace set_call_cost_microdollars cost_micropennies N/A N/A _add_billed_op_to_trace trace baseline_reads N/A N/A datamodel_pb BilledOpProto DATASTORE_READ N/A N/A _add_billed_op_to_trace trace num_results N/A N/A datamodel_pb BilledOpProto DATASTORE_SMALL N/A N/A cost_micropennies N/A N/A config DATASTORE_READ_OP_COST num_results N/A N/A N/A trace set_call_cost_microdollars cost_micropennies N/A N/A _add_billed_op_to_trace trace N/A num_results baseline_reads N/A N/A datamodel_pb BilledOpProto DATASTORE_READ N/A record_allocate_ids_details N/A N/A self trace N/A N/A N/A Records cost information for the AllocateIds RPC.

    Args:
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A N/A trace set_call_cost_microdollars N/A config DATASTORE_SMALL_OP_COST N/A N/A _add_billed_op_to_trace trace 1 N/A N/A datamodel_pb BilledOpProto DATASTORE_SMALL N/A record_xmpp_details N/A N/A self call request trace N/A N/A N/A Records information relating to xmpp RPCs.

    Args:
      call: The call name, e.g. 'SendMessage'.
      request: The request protocol message corresponding to the call.
      trace: IndividualStatsProto where information must be recorded.
     N/A stanzas 0 N/A N/A call SendMessage N/A N/A stanzas N/A N/A request jid_size N/A N/A N/A call N/A GetPresence SendPresence SendInvite N/A N/A stanzas 1 N/A N/A N/A trace set_call_cost_microdollars N/A stanzas N/A config XMPP_STANZA_COST N/A N/A _add_billed_op_to_trace trace stanzas N/A N/A datamodel_pb BilledOpProto XMPP_STANZA N/A record_channel_details N/A N/A self call trace N/A N/A N/A Records information relating to channel RPCs.

    Args:
      call: The call name, e.g. 'CreateChannel'.
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A call CreateChannel N/A N/A N/A N/A trace set_call_cost_microdollars N/A config CHANNEL_CREATE_COST N/A N/A _add_billed_op_to_trace trace 1 N/A N/A datamodel_pb BilledOpProto CHANNEL_OPEN N/A record_mail_details N/A N/A self call request trace N/A N/A N/A Records information relating to mail RPCs.

    Args:
      call: The call name, e.g. 'Send'.
      request: The request protocol message corresponding to the call.
      trace: IndividualStatsProto where information must be recorded.
     N/A N/A call N/A Send SendToAdmin N/A N/A num_recipients N/A N/A N/A N/A request to_size N/A N/A request cc_size N/A N/A request bcc_size N/A N/A N/A trace set_call_cost_microdollars N/A N/A config MAIL_RECIPIENT_COST num_recipients N/A N/A _add_billed_op_to_trace trace num_recipients N/A N/A datamodel_pb BilledOpProto MAIL_RECIPIENT N/A record_rpc_request N/A N/A self service call request response rpc N/A N/A N/A Record the request of an RPC call.

    Args:
      service: The service name, e.g. 'memcache'.
      call: The call name, e.g. 'Get'.
      request: The request object.
      response: The response object (ignored).
      rpc: The RPC object; may be None.
     N/A pre_now N/A N/A time time N/A sreq N/A format_value request N/A now N/A N/A time time N/A delta N/A int N/A 1000 N/A now N/A self start_timestamp N/A trace N/A N/A datamodel_pb IndividualRpcStatsProto N/A N/A N/A self get_call_stack trace N/A N/A N/A trace set_service_call_name N/A %s.%s N/A service call N/A N/A N/A trace set_request_data_summary sreq N/A N/A N/A trace set_start_offset_milliseconds delta N/A N/A self _lock N/A N/A N/A rpc None N/A N/A N/A N/A self pending N/A rpc N/A len N/A self traces N/A N/A N/A N/A self traces append trace N/A N/A self overhead N/A now pre_now N/A record_rpc_response N/A N/A self service call request response rpc N/A N/A N/A Record the response of an RPC call.

    Args:
      service: The service name, e.g. 'memcache'.
      call: The call name, e.g. 'Get'.
      request: The request object.
      response: The response object (ignored).
      rpc: The RPC object; may be None.

    This first tries to match the request with an unmatched request trace.
    If no matching request trace is found, this is logged as a new trace.
     N/A now N/A N/A time time N/A key N/A %s.%s N/A service call N/A delta N/A int N/A 1000 N/A now N/A self start_timestamp N/A sresp N/A format_value response N/A N/A rpc None N/A N/A N/A self _lock N/A N/A index N/A N/A N/A self pending get rpc N/A N/A index None N/A N/A N/A N/A self pending N/A rpc N/A N/A 0 index N/A len N/A self traces N/A N/A trace N/A N/A self traces N/A index N/A N/A N/A trace set_response_data_summary sresp N/A duration N/A delta N/A N/A trace start_offset_milliseconds N/A N/A N/A trace set_duration_milliseconds duration N/A N/A N/A N/A config CALC_RPC_COSTS N/A config DATASTORE_DETAILS N/A service datastore_v3 N/A N/A N/A N/A self record_datastore_details call request response trace N/A N/A N/A N/A config CALC_RPC_COSTS N/A service xmpp N/A N/A N/A N/A self record_xmpp_details call request trace N/A N/A N/A N/A config CALC_RPC_COSTS N/A service channel N/A N/A N/A N/A self record_channel_details call trace N/A N/A N/A N/A config CALC_RPC_COSTS N/A service mail N/A N/A N/A N/A self record_mail_details call request trace N/A N/A self overhead N/A N/A N/A time time now N/A N/A N/A N/A self _lock N/A N/A trace N/A reversed N/A self traces N/A N/A N/A N/A N/A N/A trace service_call_name key N/A N/A N/A trace response_data_summary N/A N/A N/A config DEBUG N/A N/A N/A N/A logging debug Matched RPC response without rpc object N/A N/A N/A trace set_response_data_summary sresp N/A duration N/A delta N/A N/A trace start_offset_milliseconds N/A N/A N/A trace set_duration_milliseconds duration N/A N/A self overhead N/A N/A N/A time time now N/A N/A N/A N/A logging warn RPC response without matching request N/A trace N/A N/A datamodel_pb IndividualRpcStatsProto N/A N/A N/A self get_call_stack trace N/A N/A N/A trace set_service_call_name key N/A N/A N/A trace set_request_data_summary sresp N/A N/A N/A trace set_start_offset_milliseconds delta N/A N/A self _lock N/A N/A N/A N/A N/A self traces append trace N/A N/A self overhead N/A N/A N/A time time now N/A record_http_status N/A N/A self status N/A N/A N/A Record the HTTP status code and the end time of the HTTP request. N/A N/A N/A N/A self http_status N/A int status N/A N/A N/A N/A ValueError TypeError N/A N/A N/A self http_status 0 N/A N/A self end_timestamp N/A N/A time time N/A save N/A N/A self N/A N/A N/A Save the recorded data to memcache and log some info.

    This wraps the _save() method, which does the actual work; this
    function just logs the total time it took and some other statistics.
     N/A t0 N/A N/A time time N/A N/A self _lock N/A N/A num_pending N/A len N/A self pending N/A num_pending N/A N/A N/A N/A logging warn Found %d RPC request(s) without matching response (presumably due to timeouts or other errors) num_pending N/A N/A N/A self dump N/A N/A N/A N/A key len_part len_full N/A N/A self _save N/A N/A N/A Exception N/A N/A N/A N/A logging exception Recorder.save() failed N/A N/A t1 N/A N/A time time N/A link N/A http://%s%s/details?time=%s N/A N/A N/A N/A self env get HTTP_HOST N/A config stats_url N/A int N/A N/A self start_timestamp 1000 N/A N/A N/A logging info Saved; key: %s, part: %s bytes, full: %s bytes, overhead: %.3f + %.3f; link: %s key len_part len_full N/A self overhead N/A t1 t0 link N/A _save N/A N/A self N/A N/A N/A Internal function to save the recorded data to memcache.

    Returns:
      A tuple (key, summary_size, full_size).
     N/A N/A part full N/A N/A self get_both_protos_encoded N/A key N/A make_key N/A self start_timestamp N/A errors N/A N/A memcache set_multi N/A N/A config PART_SUFFIX N/A config FULL_SUFFIX part full time N/A 36 3600 key_prefix key namespace N/A config KEY_NAMESPACE N/A errors N/A N/A N/A N/A logging warn Memcache set_multi() error: %s errors N/A N/A key N/A len part N/A len full N/A get_both_protos_encoded N/A N/A self N/A N/A N/A Return a string representing all recorded info an encoded protobuf.

    This constructs the full proto and calls its .Encode() method;
    if the resulting string is too large, it tries a number of
    increasingly aggressive strategies for chopping the data down.
     N/A proto N/A N/A self get_summary_proto N/A part_encoded N/A N/A proto Encode N/A N/A N/A self add_full_info_to_proto proto N/A full_encoded N/A N/A proto Encode N/A N/A N/A len full_encoded N/A memcache MAX_VALUE_SIZE N/A N/A N/A part_encoded full_encoded N/A N/A N/A config MAX_LOCALS 0 N/A N/A trace N/A N/A proto individual_stats_list N/A N/A frame N/A N/A trace call_stack_list N/A N/A N/A N/A frame clear_variables N/A full_encoded N/A N/A proto Encode N/A N/A N/A len full_encoded N/A memcache MAX_VALUE_SIZE N/A N/A N/A N/A logging info Full proto too large to save, cleared variables. N/A N/A part_encoded full_encoded N/A N/A N/A config MAX_STACK 0 N/A N/A trace N/A N/A proto individual_stats_list N/A N/A N/A N/A trace clear_call_stack N/A full_encoded N/A N/A proto Encode N/A N/A N/A len full_encoded N/A memcache MAX_VALUE_SIZE N/A N/A N/A N/A logging info Full proto way too large to save, cleared frames. N/A N/A part_encoded full_encoded N/A N/A N/A logging info Full proto WAY too large to save, clipped to 100 traces. N/A N/A N/A N/A proto individual_stats_list N/A 100 N/A full_encoded N/A N/A proto Encode N/A N/A part_encoded full_encoded N/A add_full_info_to_proto N/A N/A self proto N/A N/A N/A Update a protobuf representing with additional data. N/A user_email N/A N/A N/A self env get USER_EMAIL N/A user_email N/A N/A N/A N/A proto set_user_email user_email N/A N/A N/A N/A N/A self env get USER_IS_ADMIN 1 N/A N/A N/A N/A proto set_is_admin True N/A N/A key value N/A sorted N/A N/A N/A self env iteritems N/A N/A x N/A N/A proto add_cgi_env N/A N/A N/A x set_key key N/A N/A N/A x set_value value N/A N/A self _lock N/A N/A N/A N/A N/A N/A proto individual_stats_list extend N/A self traces N/A get_full_proto N/A N/A self N/A N/A N/A Return the full protobuf, wrapped in a StatsProto. N/A proto N/A N/A self get_summary_proto N/A N/A N/A self add_full_info_to_proto proto N/A N/A StatsProto proto N/A get_summary_proto_encoded N/A N/A self N/A N/A N/A Return a string representing a summary an encoded protobuf.

    This calls self.get_summary_proto() and calls the .Encode()
    method of the resulting object.
     N/A N/A N/A N/A N/A self get_summary_proto Encode N/A get_summary_proto N/A N/A self N/A N/A N/A Return a protobuf representing a summary of this recorder. N/A summary N/A N/A datamodel_pb RequestStatProto N/A N/A N/A summary set_start_timestamp_milliseconds N/A int N/A N/A self start_timestamp 1000 N/A method N/A N/A self http_method N/A N/A method GET N/A N/A N/A N/A summary set_http_method method N/A path N/A N/A self http_path N/A N/A path / N/A N/A N/A N/A summary set_http_path path N/A query N/A N/A self http_query N/A query N/A N/A N/A N/A summary set_http_query query N/A status N/A int N/A self http_status N/A N/A status 200 N/A N/A N/A N/A summary set_http_status status N/A duration N/A int N/A 1000 N/A N/A self end_timestamp N/A self start_timestamp N/A N/A N/A summary set_duration_milliseconds duration N/A N/A N/A summary set_overhead_walltime_milliseconds N/A int N/A N/A self overhead 1000 N/A rpc_stats N/A N/A N/A N/A self get_rpcstats items N/A N/A N/A rpc_stats sort key N/A N/A N/A x N/A N/A N/A N/A N/A x N/A 1 N/A 0 N/A x N/A 0 N/A N/A key value rpc_stats N/A N/A x N/A N/A summary add_rpc_stats N/A N/A N/A x set_service_call_name key N/A N/A N/A x set_total_amount_of_calls N/A value N/A 0 N/A N/A N/A x set_total_cost_of_calls_microdollars N/A value N/A 1 N/A billed_op N/A N/A N/A value N/A 2 itervalues N/A N/A N/A N/A N/A N/A x total_billed_ops_list append billed_op N/A summary N/A get_rpcstats N/A N/A self N/A N/A N/A Compute RPC statistics (how often each RPC endpoint is called).

    Returns:
      A dict mapping 'service.call' keys to an array of objects giving call
      counts (int), call costs (int), and billed ops (dict from op to pb).
     N/A rpcstats N/A N/A N/A self _lock N/A N/A values N/A N/A N/A N/A trace service_call_name N/A N/A trace call_cost_microdollars N/A N/A trace billed_ops_list N/A trace N/A self traces N/A value values N/A N/A N/A N/A value N/A 0 rpcstats N/A N/A stats_for_rpc N/A rpcstats N/A N/A value N/A 0 N/A N/A stats_for_rpc N/A 0 1 N/A N/A stats_for_rpc N/A 1 N/A value N/A 1 N/A N/A N/A rpcstats N/A N/A value N/A 0 N/A 1 N/A value N/A 1 N/A N/A N/A _add_billed_ops_to_map N/A N/A rpcstats N/A N/A value N/A 0 N/A 2 N/A value N/A 2 N/A rpcstats N/A get_total_api_mcycles N/A N/A self N/A N/A N/A Compute the total amount of API time for all RPCs.

    Deprecated. This value is no longer meaningful.

    Returns:
      An integer expressing megacycles.
     N/A N/A N/A warnings warn get_total_api_mcycles does not return a meaningful value UserWarning stacklevel 2 N/A 0 N/A dump N/A N/A self level N/A None N/A N/A Log the recorded data, for debugging.

    This logs messages using logging.info().  The amount of data
    logged is controlled by the level argument, which defaults to
    config.DUMP_LEVEL; if < 0 (the default) nothing is logged.
     N/A N/A level None N/A N/A level N/A config DUMP_LEVEL N/A N/A level 0 N/A N/A N/A N/A N/A logging info APPSTATS: %s "%s %s%s" %s %.3f N/A format_time N/A self start_timestamp N/A N/A self http_method N/A N/A self http_path N/A N/A self http_query N/A self http_status N/A N/A self end_timestamp N/A self start_timestamp N/A N/A key value N/A sorted N/A N/A N/A N/A self get_rpcstats iteritems N/A N/A N/A N/A logging info   %s : %s key value N/A N/A level 0 N/A N/A N/A N/A self _lock N/A N/A trace N/A self traces N/A N/A start N/A N/A trace start_offset_milliseconds N/A N/A N/A logging info   TRACE  : [%s, %s, %s] N/A N/A trace start_offset_milliseconds N/A N/A trace service_call_name N/A N/A trace duration_milliseconds N/A N/A N/A logging info     REQ  : %s N/A N/A trace request_data_summary N/A N/A N/A logging info     RESP : %s N/A N/A trace response_data_summary N/A N/A level 1 N/A N/A N/A entry N/A N/A trace call_stack_list N/A N/A N/A N/A logging info     FRAME: %s:%s %s() N/A N/A entry class_or_file_name N/A N/A entry line_number N/A N/A entry function_name N/A variable N/A N/A entry variables_list N/A N/A N/A N/A logging info       VAR: %s = %s N/A N/A variable key N/A N/A variable value N/A get_call_stack N/A N/A self trace N/A N/A N/A Extract the current call stack.

    The stack is limited to at most config.MAX_STACK frames; frames
    recognized by config.RE_STACK_SKIP are skipped; a frame recognized
    by config.RE_STACK_BOTTOM terminates the stack search.

    Args:
      trace: An IndividualRpcStatsProto instance that will be updated.
     N/A frame N/A N/A sys _getframe 0 N/A N/A N/A frame None N/A N/A N/A trace call_stack_size N/A config MAX_STACK N/A N/A N/A N/A N/A self get_frame_summary frame trace N/A N/A N/A frame N/A frame f_back N/A N/A sys_path_entries None init_sys_path_entries N/A N/A cls N/A N/A N/A Initialize the class variable path_entries.

    The variable will hold a list of (i, entry) tuples where
    entry == sys.path[i], sorted from shortest to longest entry.
     N/A N/A cls sys_path_entries N/A sorted N/A enumerate N/A sys path key N/A N/A N/A x N/A N/A N/A N/A len N/A x N/A 1 N/A x N/A 0 N/A classmethod get_frame_summary N/A N/A self frame trace N/A N/A N/A Return a frame summary.

    Args:
      frame: A Python stack frame object.
      trace: An IndividualRpcStatsProto instance that will be updated.

    Returns:
      False if this stack frame matches config.RE_STACK_BOTTOM.
      True otherwise.
     N/A N/A N/A self sys_path_entries None N/A N/A N/A N/A self init_sys_path_entries N/A filename N/A N/A frame f_code co_filename N/A N/A filename N/A N/A N/A N/A filename startswith < N/A N/A filename endswith > N/A N/A N/A i entry N/A self sys_path_entries N/A N/A N/A N/A filename startswith entry N/A N/A filename N/A N/A <path[%s]> i N/A filename N/A N/A len entry N/A N/A funcname N/A N/A frame f_code co_name N/A lineno N/A frame f_lineno N/A code_key N/A %s:%s:%s N/A filename funcname lineno N/A N/A N/A re search N/A config RE_STACK_BOTTOM code_key N/A N/A False N/A N/A N/A re search N/A config RE_STACK_SKIP code_key N/A N/A True N/A entry N/A N/A trace add_call_stack N/A N/A N/A entry set_class_or_file_name filename N/A N/A N/A entry set_line_number lineno N/A N/A N/A entry set_function_name funcname N/A N/A N/A frame f_globals N/A frame f_locals N/A N/A True N/A max_locals N/A config MAX_LOCALS N/A N/A max_locals 0 N/A N/A True N/A N/A name value N/A sorted N/A N/A N/A frame f_locals iteritems N/A N/A x N/A N/A entry add_variables N/A N/A N/A x set_key name N/A N/A N/A x set_value N/A format_value value N/A max_locals 1 N/A N/A max_locals 0 N/A N/A N/A True N/A N/A mcycles_to_seconds N/A N/A mcycles N/A N/A N/A Helper function to convert megacycles to seconds. N/A N/A mcycles None N/A N/A 0 N/A N/A N/A quota megacycles_to_cpu_seconds mcycles N/A mcycles_to_msecs N/A N/A mcycles N/A N/A N/A Helper function to convert megacycles to milliseconds. N/A N/A int N/A N/A mcycles_to_seconds mcycles 1000 N/A make_key N/A N/A timestamp N/A N/A N/A Return the key (less suffix) to which a timestamp maps.

  Args:
    timestamp: A timestamp, expressed using the standard Python
      convention for timestamps (a float giving seconds and fractional
      seconds since the POSIX timestamp epoch).

  Returns:
    A string, formed by concatenating config.KEY_PREFIX and
    config.KEY_TEMPLATE with some of the lower digits of the timestamp
    converted to milliseconds substituted in the template (which should
    contain exactly one %-format like '%d').
   N/A distance N/A config KEY_DISTANCE N/A modulus N/A config KEY_MODULUS N/A tmpl N/A N/A config KEY_PREFIX N/A config KEY_TEMPLATE N/A msecs N/A int N/A timestamp 1000 N/A index N/A N/A N/A msecs distance modulus distance N/A N/A tmpl index N/A format_time N/A N/A timestamp N/A N/A N/A Utility to format a timestamp in UTC.

  Args:
      timestamp: A float representing a standard Python time (see make_key()).
   N/A timestamp N/A N/A N/A datetime datetime utcfromtimestamp timestamp N/A timestamp N/A N/A datetime timedelta seconds N/A config TZOFFSET N/A N/A N/A N/A N/A N/A timestamp isoformat N/A -3 replace T N/A format_value N/A N/A val N/A N/A N/A Format an arbitrary value as a compact string.

  This wraps formatting._format_value() passing it our config variables.
   N/A N/A N/A formatting _format_value val N/A config MAX_REPR N/A config MAX_DEPTH N/A billed_ops_to_str N/A N/A billed_ops_list N/A N/A N/A Formats a list of BilledOpProtos for display in the appstats UI. N/A ops_as_strs N/A N/A op billed_ops_list N/A N/A op_name N/A N/A N/A datamodel_pb BilledOpProto BilledOp_Name N/A N/A op op N/A N/A N/A ops_as_strs append N/A %s:%s N/A op_name N/A N/A op num_ops N/A N/A N/A ,  join ops_as_strs N/A total_billed_ops_to_str N/A N/A self N/A N/A N/A Formats a list of BilledOpProtos for display in the appstats UI.

  We attach this method to AggregateRpcStatsProto, which keeps the
  django-templates we use to render the appstats UI simpler and multi-language
  friendly.

  Args:
    self: the linter is harrassing me, what am I supposed to put here?
  Returns:
    A display-friendly string representation of a list of BilledOpsProtos
   N/A N/A billed_ops_to_str N/A N/A self total_billed_ops_list N/A individual_billed_ops_to_str N/A N/A self N/A N/A N/A Formats a list of BilledOpProtos for display in the appstats UI.

  We attach this method to IndividualRpcStatsProto, which keeps the
  django-templates we use to render the appstats UI simpler and multi-language
  friendly.

  Args:
    self: the linter is harrassing me, what am I supposed to put here?
  Returns:
    A display-friendly string representation of a list of BilledOpsProtos
   N/A N/A billed_ops_to_str N/A N/A self billed_ops_list N/A StatsProto N/A object N/A N/A A wrapper for RequestStatProto with a number of extra attributes.

  This exists mainly so that ui.py can pass an instance of this class
  directly to a Django template, and give the Django template access
  to formatted times and megacycles converted to milliseconds without
  using custom tags.  (Though arguably the latter would be more
  convenient for the Java version of Appstats.)

  This adds the following methods:

  - .start_time_formatted(): .start_time_milliseconds() nicely formatted.
  - .processor_milliseconds(): .processor_mcycles() converted to milliseconds.
  - .combined_rpc_count(): total number of RPCs, computed from
      .rpc_stats_list().  (This is cached as .__combined_rpc_count.)
  - .combined_rpc_cost(): total cost of RPCs, computed from
      .rpc_stats_list().  (This is cached as .__combined_rpc_cost.)
  - .combined_rpc_billed_ops(): total billed ops for RPCs, computed from
      .rpc_stats_list().  (This is cached as .__combined_rpc_billed_ops.)

  All these are methods to remain close in style to the protobuffer
  access methods.
   __init__ N/A N/A self proto N/A None N/A N/A N/A N/A isinstance proto N/A datamodel_pb RequestStatProto N/A N/A proto N/A N/A datamodel_pb RequestStatProto proto N/A N/A self _proto proto N/A __getattr__ N/A N/A self key N/A N/A N/A N/A getattr N/A self _proto key N/A start_time_formatted N/A N/A self N/A N/A N/A Return a string representing .start_timestamp_milliseconds(). N/A N/A format_time N/A N/A N/A self start_timestamp_milliseconds 0.001 N/A api_milliseconds N/A N/A self N/A N/A N/A Return an int giving .api_mcycles() converted to milliseconds.

    Deprecated. This value is no longer meaningful.

    Returns:
      An integer expressing milliseconds.
     N/A N/A N/A warnings warn api_milliseconds does not return a meaningful value UserWarning stacklevel 2 N/A 0 N/A processor_mcycles N/A N/A self N/A N/A N/A N/A N/A warnings warn processor_mcycles does not return correct values UserWarning stacklevel 2 N/A N/A N/A N/A self _proto processor_mcycles N/A processor_milliseconds N/A N/A self N/A N/A N/A Return an int giving .processor_mcycles() converted to milliseconds. N/A N/A N/A warnings warn processor_milliseconds does not return correct values UserWarning stacklevel 2 N/A N/A mcycles_to_msecs N/A N/A N/A self _proto processor_mcycles N/A N/A __combined_rpc_count None combined_rpc_count N/A N/A self N/A N/A N/A Return the total number of RPCs across .rpc_stats_list(). N/A N/A N/A self __combined_rpc_count None N/A N/A N/A self __combined_rpc_count N/A sum N/A N/A N/A x total_amount_of_calls N/A x N/A N/A self rpc_stats_list N/A N/A self __combined_rpc_count N/A N/A __combined_rpc_cost_micropennies None combined_rpc_cost_micropennies N/A N/A self N/A N/A N/A Return the total cost of RPCs across .rpc_stats_list(). N/A N/A N/A self __combined_rpc_cost_micropennies None N/A N/A N/A self __combined_rpc_cost_micropennies N/A sum N/A N/A N/A x total_cost_of_calls_microdollars N/A x N/A N/A self rpc_stats_list N/A N/A self __combined_rpc_cost_micropennies N/A N/A __combined_rpc_billed_ops None combined_rpc_billed_ops N/A N/A self N/A N/A N/A Return the total billed ops for RPCs across .rpc_stats_list(). N/A N/A N/A self __combined_rpc_billed_ops None N/A N/A combined_ops_dict N/A N/A stats N/A N/A self rpc_stats_list N/A N/A N/A _add_billed_ops_to_map combined_ops_dict N/A N/A stats total_billed_ops_list N/A N/A self __combined_rpc_billed_ops N/A billed_ops_to_str N/A N/A combined_ops_dict itervalues N/A N/A self __combined_rpc_billed_ops N/A N/A load_summary_protos N/A N/A java_application N/A False N/A N/A Load all valid summary records from memcache.

  Args:
    java_application: Boolean. If true, this function is being invoked
      by the download_appstats tool on a java application.

  Returns:
    A list of StatsProto instances, in reverse chronological order
    (i.e. most recent first).

  NOTE: This is limited to returning at most config.KEY_MODULUS records,
  since there are only that many distinct keys.  See also make_key().
   N/A tmpl N/A N/A N/A config KEY_PREFIX N/A config KEY_TEMPLATE N/A config PART_SUFFIX N/A java_application N/A N/A tmpl N/A N/A " tmpl " N/A keys N/A N/A tmpl i N/A i N/A range 0 N/A N/A config KEY_DISTANCE N/A config KEY_MODULUS N/A config KEY_DISTANCE N/A results N/A N/A memcache get_multi keys namespace N/A config KEY_NAMESPACE N/A records N/A N/A rec N/A N/A results itervalues N/A N/A N/A N/A pb N/A StatsProto rec N/A N/A N/A Exception N/A err N/A N/A N/A N/A logging warn Bad record: %s err N/A N/A N/A N/A records append pb N/A N/A N/A logging info Loaded %d raw summary records, %d valid N/A len results N/A len records N/A N/A N/A records sort key N/A N/A N/A pb N/A N/A N/A N/A pb start_timestamp_milliseconds N/A records N/A load_full_proto N/A N/A timestamp java_application N/A False N/A N/A Load the full record for a given timestamp.

  Args:
    timestamp: The start_timestamp of the record, as a float in seconds
      (see make_key() for details).
    java_application: Boolean. If true, this function is being invoked
      by the download_appstats tool on a java application.
  Returns:
    A StatsProto instance if the record exists and can be loaded;
    None otherwise.
   N/A full_key N/A N/A make_key timestamp N/A config FULL_SUFFIX N/A java_application N/A N/A full_key N/A N/A " full_key " N/A full_binary N/A N/A memcache get full_key namespace N/A config KEY_NAMESPACE N/A N/A full_binary None N/A N/A N/A N/A logging debug No full record at %s full_key N/A None N/A N/A N/A full N/A StatsProto full_binary N/A N/A N/A Exception N/A err N/A N/A N/A N/A logging warn Bad full record at %s: %s full_key err N/A None N/A N/A N/A N/A full start_timestamp_milliseconds N/A int N/A timestamp 1000 N/A N/A N/A N/A logging debug Hash collision, record at %d has timestamp %d N/A int N/A timestamp 1000 N/A N/A full start_timestamp_milliseconds N/A None N/A full N/A AppstatsDjangoMiddleware N/A object N/A N/A Django Middleware to install the instrumentation.

  To start recording your app's RPC statistics, add

    'google.appengine.ext.appstats.recording.AppstatsDjangoMiddleware',

  to the MIDDLEWARE_CLASSES entry in your Django settings.py file.
  It's best to insert it in front of any other middleware classes,
  since some other middleware may make RPC calls and those won't be
  recorded if that middleware is invoked before this middleware.

  See http://docs.djangoproject.com/en/dev/topics/http/middleware/.
   process_request N/A N/A self request N/A N/A N/A Called by Django before deciding which view to execute. N/A N/A start_recording N/A process_response N/A N/A self request response N/A N/A N/A Called by Django just before returning a response. N/A N/A end_recording N/A response status_code N/A response N/A N/A N/A AppStatsDjangoMiddleware AppstatsDjangoMiddleware appstats_wsgi_middleware N/A N/A app N/A N/A N/A WSGI Middleware to install the instrumentation.

  Normally you specify this middleware in your appengine_config.py
  file, like this:

    def webapp_add_wsgi_middleware(app):
      from google.appengine.ext.appstats import recording
      app = recording.appstats_wsgi_middleware(app)
      return app

  See Python PEP 333, http://www.python.org/dev/peps/pep-0333/ for
  more information about the WSGI standard.
   appstats_wsgi_wrapper N/A N/A environ start_response N/A N/A N/A Outer wrapper function around the WSGI protocol.

    The top-level appstats_wsgi_middleware() function returns this
    function to the caller instead of the app class or function passed
    in.  When the caller calls this function (which may happen
    multiple times, to handle multiple requests) this function
    instantiates the app class (or calls the app function), sandwiched
    between calls to start_recording() and end_recording() which
    manipulate the recording state.

    The signature is determined by the WSGI protocol.
     N/A N/A start_recording environ N/A save_status N/A None N/A N/A N/A datamodel_pb AggregateRpcStatsProto total_billed_ops_str total_billed_ops_to_str N/A N/A N/A datamodel_pb IndividualRpcStatsProto billed_ops_str individual_billed_ops_to_str appstats_start_response N/A N/A status headers exc_info N/A None N/A N/A Inner wrapper function for the start_response() function argument.

      The purpose of this wrapper is save the HTTP status (which the
      WSGI protocol only makes available through the start_response()
      function) into the surrounding scope.  This is done through a
      hack because Python 2.x doesn't support assignment to nonlocal
      variables.  If this function is called more than once, the last
      status value will be used.

      The signature is determined by the WSGI protocol.
       N/A N/A N/A save_status append status N/A N/A start_response status headers exc_info N/A N/A N/A N/A result N/A app environ appstats_start_response N/A N/A N/A Exception N/A N/A N/A end_recording 500 N/A N/A N/A result None N/A N/A value result N/A N/A N/A value N/A status N/A save_status N/A -1 N/A N/A status None N/A N/A status N/A status N/A 3 N/A N/A end_recording status N/A N/A appstats_wsgi_wrapper N/A _synchronized N/A N/A method N/A N/A N/A A decorator that synchronizes the method call with self._lock. synchronized_wrapper N/A N/A self N/A args N/A N/A N/A self _lock N/A N/A N/A method self args N/A N/A synchronized_wrapper N/A RequestLocalRecorderProxy N/A object N/A N/A A Recorder proxy that dispatches to a Recorder for the current request. __init__ N/A N/A self N/A N/A N/A N/A self _recorders N/A N/A N/A self _lock N/A N/A threading RLock N/A __getattr__ N/A N/A self key N/A N/A N/A N/A N/A N/A self has_recorder_for_current_request N/A N/A N/A AttributeError No Recorder is set for this request. N/A N/A getattr N/A N/A self get_for_current_request key N/A _synchronized has_recorder_for_current_request N/A N/A self N/A N/A N/A Returns whether the current request has a recorder set. N/A N/A N/A N/A N/A os environ get REQUEST_ID_HASH N/A self _recorders N/A _synchronized set_for_current_request N/A N/A self new_recorder N/A N/A N/A Sets the recorder for the current request. N/A N/A N/A self _recorders N/A N/A N/A N/A os environ get REQUEST_ID_HASH new_recorder N/A N/A _set_global_recorder new_recorder N/A _synchronized get_for_current_request N/A N/A self N/A N/A N/A Returns the recorder for the current request or None. N/A N/A N/A N/A self _recorders get N/A N/A N/A os environ get REQUEST_ID_HASH N/A _synchronized clear_for_current_request N/A N/A self N/A N/A N/A Clears the recorder for the current request. N/A N/A N/A N/A N/A os environ get REQUEST_ID_HASH N/A self _recorders N/A N/A N/A N/A self _recorders N/A N/A N/A N/A os environ get REQUEST_ID_HASH N/A N/A _clear_global_recorder N/A _synchronized _clear_all N/A N/A self N/A N/A N/A Clears the recorders for all requests. N/A N/A N/A N/A self _recorders clear N/A N/A _clear_global_recorder N/A _synchronized N/A _set_global_recorder N/A N/A new_recorder N/A N/A N/A N/A N/A N/A N/A os environ get APPENGINE_RUNTIME python27 N/A N/A recorder N/A recorder new_recorder N/A _clear_global_recorder N/A N/A N/A N/A N/A N/A _set_global_recorder None N/A N/A recorder_proxy N/A RequestLocalRecorderProxy N/A N/A N/A N/A N/A os environ get APPENGINE_RUNTIME python27 N/A N/A recorder None dont_record N/A N/A N/A N/A N/A API to prevent recording of the current request.  Used by ui.py. N/A N/A N/A recorder_proxy clear_for_current_request N/A lock_key N/A N/A N/A N/A N/A Return the key name to use for the memcache lock. N/A N/A N/A config KEY_PREFIX N/A config LOCK_SUFFIX N/A start_recording N/A N/A env N/A None N/A N/A Start recording RPC traces.

  This creates a Recorder instance and sets it for the current request
  in the global RequestLocalRecorderProxy 'recorder_proxy'.

  Args:
    env: Optional WSGI environment; defaults to os.environ.
   N/A N/A N/A recorder_proxy clear_for_current_request N/A N/A env None N/A N/A env N/A os environ N/A N/A N/A N/A config should_record env N/A N/A N/A N/A N/A memcache add N/A lock_key 0 time N/A config LOCK_TIMEOUT namespace N/A config KEY_NAMESPACE N/A N/A N/A N/A recorder_proxy set_for_current_request N/A Recorder env N/A N/A config DEBUG N/A N/A N/A N/A logging debug Set recorder N/A end_recording N/A N/A status firepython_set_extension_data N/A None N/A N/A Stop recording RPC traces and save all traces to memcache.

  This clears the recorder set for this request in 'recorder_proxy'.

  Args:
    status: HTTP Status, a 3-digit integer.
   N/A N/A firepython_set_extension_data None N/A N/A N/A N/A warnings warn Firepython is no longer supported N/A rec N/A N/A recorder_proxy get_for_current_request N/A N/A N/A recorder_proxy clear_for_current_request N/A N/A config DEBUG N/A N/A N/A N/A logging debug Cleared recorder N/A N/A rec None N/A N/A N/A N/A N/A N/A rec record_http_status status N/A N/A N/A rec save N/A N/A N/A N/A memcache delete N/A lock_key namespace N/A config KEY_NAMESPACE N/A pre_call_hook N/A N/A service call request response rpc N/A None N/A N/A Pre-Call hook function for apiprixy_stub_map.

  The signature is determined by the CallHooks protocol.  In certain
  cases, rpc may be omitted.

  Once registered, this fuction will be called right before any kind
  of RPC call is made through apiproxy_stub_map.  The arguments are
  passed on to the record_rpc_request() method of the global
  'recorder_proxy' variable, unless the latter does not have a Recorder set
  for this request.
   N/A N/A N/A recorder_proxy has_recorder_for_current_request N/A N/A N/A config DEBUG N/A N/A N/A N/A logging debug pre_call_hook: recording %s.%s service call N/A N/A N/A recorder_proxy record_rpc_request service call request response rpc N/A post_call_hook N/A N/A service call request response rpc error N/A None None N/A N/A Post-Call hook function for apiproxy_stub_map.

  The signature is determined by the CallHooks protocol.  In certain
  cases, rpc and/or error may be omitted.

  Once registered, this fuction will be called right after any kind of
  RPC call made through apiproxy_stub_map returns.  The call is passed
  on to the record_rpc_request() method of the global 'recorder_proxy'
  variable, unless the latter does not have a Recorder set for this
  request.
   N/A N/A N/A recorder_proxy has_recorder_for_current_request N/A N/A N/A config DEBUG N/A N/A N/A N/A logging debug post_call_hook: recording %s.%s service call N/A N/A N/A recorder_proxy record_rpc_response service call request response rpc N/A _add_billed_ops_to_map N/A N/A billed_ops_dict billed_ops_list N/A N/A N/A Add the BilledOpProtos in billed_ops_list to the given dict. N/A billed_op billed_ops_list N/A N/A N/A N/A N/A billed_op op billed_ops_dict N/A N/A update_me N/A N/A datamodel_pb BilledOpProto N/A N/A N/A update_me set_op N/A N/A billed_op op N/A N/A N/A update_me set_num_ops 0 N/A N/A billed_ops_dict N/A N/A N/A billed_op op update_me N/A update_me N/A billed_ops_dict N/A N/A N/A billed_op op N/A N/A N/A update_me set_num_ops N/A N/A N/A update_me num_ops N/A N/A billed_op num_ops N/A _add_billed_op_to_trace N/A N/A trace num_ops op N/A N/A N/A Adds a billed op to the given trace. N/A num_ops N/A N/A billed_op N/A N/A trace add_billed_ops N/A N/A N/A billed_op set_num_ops num_ops N/A N/A N/A billed_op set_op op N/A N/A N/A N/A N/A N/A N/A apiproxy_stub_map apiproxy GetPreCallHooks Append appstats pre_call_hook N/A N/A N/A N/A N/A N/A apiproxy_stub_map apiproxy GetPostCallHooks Append appstats post_call_hook