Module Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AugAssignAdd NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Call AttributeLoad Str attr NameLoad Return TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIn NameLoad ListLoad Str body Assign NameStore NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad Str NameLoad Assign TupleStore NameStore NameStore Call NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Continue If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad AugAssignAdd NameStore Num If CompareEq BinOpMod NameLoad Num Num body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A kudu N/A os N/A subprocess N/A sys N/A tempfile N/A time N/A DSTAT_COL_NAMES N/A usr sys idl wai hiq siq read writ recv send in out int csw connect_to N/A N/A host port N/A 7051 N/A N/A Returns a kudu client object connecting to the specified kudu master N/A N/A N/A kudu Client N/A N/A {0}:{1} format host port N/A open_or_create_table N/A N/A client table drop N/A False N/A N/A Based on the default dstat column names create a new table indexed by a timstamp col N/A exists False N/A N/A N/A client table_exists table N/A N/A exists True N/A drop N/A N/A N/A N/A client delete_table table N/A exists False N/A N/A exists N/A N/A cols N/A N/A N/A N/A kudu ColumnSchema create ts N/A kudu INT64 N/A cols N/A N/A N/A N/A kudu ColumnSchema create x N/A kudu FLOAT N/A x DSTAT_COL_NAMES N/A schema N/A N/A kudu schema_from_list cols 1 N/A N/A N/A client create_table table schema N/A N/A N/A client open_table table N/A append_row N/A N/A table line N/A N/A N/A The line is the raw string read from stdin, that is then splitted by , and prepended
  with the current timestamp. N/A data N/A N/A float N/A N/A x strip N/A x N/A N/A line split , N/A op N/A N/A table insert N/A N/A op N/A ts N/A int N/A N/A time time N/A N/A c v N/A zip DSTAT_COL_NAMES data N/A N/A N/A op N/A c v N/A op N/A start_dstat N/A N/A N/A N/A N/A tmpdir N/A N/A tempfile mkdtemp N/A path N/A N/A N/A os path join tmpdir dstat.pipe N/A N/A N/A os mkfifo path N/A proc N/A N/A subprocess Popen N/A dstat -cdngy --output N/A N/A {0} format path N/A N/A N/A proc pid path N/A N/A N/A __name__ __main__ N/A N/A drop False N/A N/A N/A len N/A sys argv 1 N/A N/A operation N/A N/A sys argv N/A 1 N/A N/A operation N/A drop N/A N/A drop True N/A client N/A connect_to 127.0.0.1 N/A table N/A open_or_create_table client dstat drop N/A N/A dstat_id pipe_path N/A start_dstat N/A N/A N/A fid N/A open pipe_path r N/A session N/A N/A client new_session N/A counter 0 N/A skip True N/A True N/A N/A line N/A N/A fid readline N/A N/A N/A line startswith "usr" N/A N/A skip False N/A N/A N/A skip N/A N/A N/A N/A session apply N/A append_row table line N/A counter 1 N/A N/A N/A counter 10 0 N/A N/A N/A N/A session flush N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A os path exists pipe_path N/A N/A N/A N/A os remove pipe_path