Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Print Str Print Str Print Str Print Str Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Num Str SubscriptLoad AttributeLoad NameLoad attr Index Num Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str FunctionDef arguments args NameParam defaults body Return BinOpDiv BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num Num Num decorator_list Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body Assign NameStore NameLoad Assign NameStore Num Assign NameStore Dict Num Num ListLoad ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num AugAssignAdd NameStore NameLoad Assign NameStore Num Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body Assign NameStore NameLoad Assign NameStore Num Assign NameStore Dict Num Num ListLoad ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num AugAssignAdd NameStore BinOpAdd NameLoad NameLoad AugAssignAdd NameStore NameLoad Print BinOpAdd Str Call NameLoad NameLoad Print BinOpAdd Str Call NameLoad NameLoad Print BinOpAdd Str Call NameLoad BinOpDiv Call NameLoad NameLoad BinOpSub NameLoad NameLoad
N/A N/A sys N/A os N/A random N/A shutil N/A time datetime datetime db init_db N/A N/A N/A len N/A sys argv 5 N/A N/A You must specify 4 arguments: N/A 1. The MySQL DB user name N/A 2. The MySQL DB password N/A 3. The start datetime in the format: %Y-%m-%d %H:%M:%S N/A 4. The finish datetime in the format: %Y-%m-%d %H:%M:%S N/A N/A N/A sys exit 1 N/A db N/A init_db N/A N/A N/A N/A mysql:// N/A N/A sys argv N/A 1 : N/A N/A sys argv N/A 2 @localhost/neat N/A start_time N/A N/A datetime fromtimestamp N/A N/A time mktime N/A N/A time strptime N/A N/A sys argv N/A 3 %Y-%m-%d %H:%M:%S N/A finish_time N/A N/A datetime fromtimestamp N/A N/A time mktime N/A N/A time strptime N/A N/A sys argv N/A 4 %Y-%m-%d %H:%M:%S total_seconds N/A N/A delta N/A N/A N/A N/A N/A N/A delta microseconds N/A N/A N/A delta seconds N/A N/A N/A delta days 24 3600 1000000 1000000 N/A N/A total_idle_time 0 N/A N/A hostname host_id N/A N/A N/A N/A db select_host_ids items N/A N/A prev_timestamp start_time N/A prev_state 1 N/A states N/A 0 1 N/A N/A N/A N/A timestamp state N/A N/A db select_host_states host_id start_time finish_time N/A N/A prev_timestamp N/A N/A N/A N/A N/A states N/A prev_state append N/A total_seconds N/A timestamp prev_timestamp N/A prev_timestamp timestamp N/A prev_state state N/A N/A N/A N/A states N/A prev_state append N/A total_seconds N/A finish_time prev_timestamp N/A off_time N/A sum N/A states N/A 0 N/A total_idle_time off_time N/A total_time 0 N/A total_overload_time 0 N/A N/A hostname host_id N/A N/A N/A N/A db select_host_ids items N/A N/A prev_timestamp start_time N/A prev_state 0 N/A states N/A 0 1 N/A N/A N/A N/A timestamp state N/A N/A db select_host_overload host_id start_time finish_time N/A N/A prev_timestamp N/A N/A N/A N/A N/A states N/A prev_state append N/A total_seconds N/A timestamp prev_timestamp N/A prev_timestamp timestamp N/A prev_state state N/A N/A N/A N/A states N/A prev_state append N/A total_seconds N/A finish_time prev_timestamp N/A nonoverload_time N/A sum N/A states N/A 0 N/A overload_time N/A sum N/A states N/A 1 N/A total_time N/A nonoverload_time overload_time N/A total_overload_time overload_time N/A N/A Total time:  N/A str total_time N/A N/A Overload time:  N/A str total_overload_time N/A N/A Overload time fraction:  N/A str N/A N/A float total_overload_time N/A total_time total_idle_time