Module Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore Dict Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpMod Str Call NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Raise Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Dict Str AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr TryExcept body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Return NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad orelse Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Return NameLoad orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Assign NameStore ListComp SubscriptLoad NameLoad Slice Num comprehension NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return ListComp Dict Str Str NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Str comprehension NameStore NameLoad orelse Return ListLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Dict Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A N/A csv N/A errno N/A logging os listdir makedirs remove rename os.path exists isdir join splitext StringIO StringIO shutil rmtree time time N/A simplejson json pylons config N/A LOG N/A N/A logging getLogger __name__ MetricsSession N/A object N/A N/A keys N/A file ext size type time status N/A _slug_sessions N/A N/A _last_timestamp 0 __init__ N/A N/A self slug N/A N/A N/A N/A self entries N/A N/A N/A self slug slug N/A timestamp N/A %.8f N/A time N/A N/A N/A MetricsSession _last_timestamp timestamp N/A N/A timestamp 1 N/A N/A MetricsSession _last_timestamp timestamp N/A N/A self timestamp timestamp N/A N/A self file_name N/A N/A MetricsSession get_file_name slug timestamp N/A N/A N/A LOG info New metrics session started timestamp %s timestamp N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self finish N/A append N/A N/A self file_name file_size file_type file_status N/A N/A N/A N/A _ file_ext N/A splitext file_name N/A entry N/A file ext size type time status file_name file_ext N/A int file_size file_type N/A time file_status N/A N/A N/A N/A self entries append entry N/A get_file_path N/A N/A self N/A N/A N/A N/A self file_name N/A finish N/A N/A self N/A N/A N/A folder_name N/A N/A MetricsSession get_folder_name N/A self slug N/A N/A N/A exists folder_name N/A N/A N/A N/A N/A makedirs folder_name N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno EEXIST N/A N/A N/A N/A LOG error N/A str e N/A N/A N/A N/A LOG info Metrics session saving to %s N/A self file_name N/A session N/A entries N/A self entries N/A N/A N/A f N/A open N/A self file_name mode w N/A N/A N/A json dump session f indent 4 N/A N/A N/A f close N/A N/A N/A IOError N/A e N/A N/A N/A N/A LOG error N/A str e N/A get_folder_name N/A N/A cls slug N/A N/A N/A N/A join N/A config N/A metrics.base_path slug N/A classmethod get_file_name N/A N/A cls slug timestamp N/A N/A N/A N/A join N/A N/A cls get_folder_name slug N/A %s.json timestamp N/A classmethod get_csv_file_name N/A N/A cls slug timestamp N/A N/A N/A N/A join N/A N/A cls get_folder_name slug N/A %s.csv timestamp N/A classmethod get_data N/A N/A cls slug timestamp N/A N/A N/A file_name N/A N/A cls get_file_name slug timestamp N/A N/A N/A f N/A open file_name mode r N/A session_data N/A N/A json load f N/A N/A N/A f close N/A N/A N/A N/A IOError N/A json JSONDecodeError N/A N/A session_data N/A session_data N/A classmethod get_data_as_csv N/A N/A cls slug timestamp N/A N/A N/A csv_buffer N/A StringIO N/A file_name N/A N/A cls get_file_name slug timestamp N/A keys N/A MetricsSession keys N/A N/A N/A N/A open file_name r f N/A N/A session_data N/A N/A json load f N/A rows N/A session_data N/A entries N/A N/A N/A IOError N/A N/A None N/A N/A writer N/A N/A csv DictWriter csv_buffer keys N/A N/A N/A writer writerow N/A dict N/A zip keys keys N/A row rows N/A N/A N/A N/A writer writerow row N/A csv_data N/A N/A csv_buffer getvalue N/A N/A N/A csv_buffer close N/A csv_data N/A classmethod get_data_as_json N/A N/A cls slug timestamp N/A N/A N/A file_name N/A N/A cls get_file_name slug timestamp N/A N/A N/A f N/A open file_name r N/A session_data N/A N/A f read N/A N/A N/A f close N/A N/A N/A IOError N/A N/A None N/A N/A session_data N/A classmethod delete N/A N/A cls slug timestamp N/A N/A N/A timestamp N/A N/A file_name N/A N/A cls get_file_name slug timestamp N/A N/A N/A N/A remove file_name N/A N/A N/A OSError N/A N/A False N/A N/A N/A rmtree N/A N/A cls get_folder_name slug True N/A True N/A classmethod rename N/A N/A cls old_slug new_slug N/A N/A N/A old_folder N/A N/A cls get_folder_name old_slug N/A new_folder N/A N/A cls get_folder_name new_slug N/A N/A N/A N/A rmtree new_folder N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A rename old_folder new_folder N/A N/A N/A OSError N/A N/A N/A classmethod stop_recording N/A N/A cls slug N/A N/A N/A N/A N/A N/A N/A cls _slug_sessions N/A slug N/A N/A N/A KeyError N/A N/A False N/A N/A True N/A classmethod has_metrics N/A N/A cls slug N/A N/A N/A N/A slug N/A cls _slug_sessions N/A N/A True N/A folder_name N/A N/A cls get_folder_name slug N/A N/A isdir folder_name N/A N/A f N/A listdir folder_name N/A N/A N/A N/A f endswith .json N/A N/A True N/A False N/A classmethod get_metrics N/A N/A cls slug N/A N/A N/A N/A N/A cls stop_recording slug N/A folder_name N/A N/A cls get_folder_name slug N/A N/A isdir folder_name N/A N/A timestamps N/A N/A f N/A -5 N/A f N/A listdir folder_name N/A N/A f endswith .json N/A N/A N/A timestamps sort N/A N/A N/A timestamp entries t N/A N/A N/A cls get_data slug t N/A entries N/A t timestamps N/A N/A N/A N/A classmethod get_sessions N/A N/A cls slug N/A N/A N/A N/A N/A slug_sessions N/A N/A cls _slug_sessions N/A slug N/A N/A N/A KeyError N/A N/A slug_sessions N/A N/A N/A N/A cls _slug_sessions N/A slug slug_sessions N/A slug_sessions N/A classmethod N/A