Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore IfExp AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Return ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad orelse Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BoolOpOr AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr With Call NameLoad Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str With Call NameLoad NameLoad Str body Pass Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr IfExp SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Return Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad With Call NameLoad Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad
N/A N/A Mobster is a command-line tool for profiling remote WebKit-based browsers via the
WebKit remote debugging protocol. This script provides a simple way to use the tool
to profile a single page and generate a HAR file containing the results N/A argparse N/A commands N/A json N/A logging N/A os N/A subprocess N/A sys N/A time N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ src linkedin.mobster.har.flowprofiler FlowProfiler linkedin.mobster.har.merge merge_by_average linkedin.mobster.har.visualization.report make_html linkedin.mobster.mobsterconfig config linkedin.mobster.utils cmd_exists N/A LINUX_BROWSER_OPEN_CMD xdg-open N/A MAC_BROWSER_OPEN_CMD open N/A DEFAULT_OUTPUT_DIR N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ report N/A REPORT_FILE_TEMPLATE http_waterfall_{0}.html N/A HAR_FILE_TEMPLATE data_{0}.json N/A TIMESTAMP N/A int N/A N/A time time run N/A N/A args N/A N/A N/A 
  Run a test with the specified parameters, and return the HTTP Archive
  (HAR) File represented as a dictionary.
   N/A har_gen N/A N/A args iterations N/A FlowProfiler N/A args testfile N/A int N/A args iterations N/A FlowProfiler N/A args testfile N/A profiling_results N/A N/A har_gen profile N/A N/A args average N/A N/A N/A N/A merge_by_average page_results N/A page_results N/A zip profiling_results N/A N/A N/A profiling_results N/A -1 N/A write_report N/A N/A args N/A N/A N/A 
  Autogenerates an HTML report and writes it to a file, with location and input
  specified by the given arguments.
   N/A output_html N/A make_html N/A N/A args har N/A har_file_path args N/A args debug N/A N/A open N/A report_file_path args w output_handle N/A N/A N/A N/A output_handle write output_html N/A N/A args browser N/A N/A N/A open_browser N/A report_file_path args N/A open_browser N/A N/A file_path N/A N/A N/A 
  Open the specified file in the default web browser. Only works in Mac OS
  and Linux
   N/A N/A cmd_exists LINUX_BROWSER_OPEN_CMD N/A N/A browser_open_cmd LINUX_BROWSER_OPEN_CMD N/A N/A browser_open_cmd MAC_BROWSER_OPEN_CMD N/A N/A N/A commands getstatusoutput N/A N/A {0} {1} format browser_open_cmd file_path N/A report_file_path N/A N/A args N/A N/A N/A 
  Returns the path of the file where the report should be stored as specified
  by the arguments.
   N/A N/A args reportoutput N/A N/A N/A args reportoutput N/A N/A N/A args reportdirectory N/A N/A output_dir N/A args reportdirectory N/A N/A output_dir DEFAULT_OUTPUT_DIR N/A N/A N/A N/A N/A os path isdir output_dir N/A N/A N/A N/A os mkdir output_dir N/A filename N/A N/A REPORT_FILE_TEMPLATE format TIMESTAMP N/A N/A N/A N/A os sep join N/A output_dir filename N/A har_file_path N/A N/A args N/A N/A N/A 
  Returns the path of the file where the HAR output should be stored as
  specified by the arguments.
   N/A N/A args haroutput N/A N/A N/A args haroutput N/A N/A N/A args hardirectory N/A N/A output_dir N/A args hardirectory N/A N/A output_dir DEFAULT_OUTPUT_DIR N/A N/A N/A N/A N/A os path isdir output_dir N/A N/A N/A N/A os mkdir output_dir N/A filename N/A N/A HAR_FILE_TEMPLATE format TIMESTAMP N/A N/A N/A N/A os sep join N/A output_dir filename N/A init_logging N/A N/A N/A N/A N/A log_file /var/tmp/mobster.log N/A N/A open log_file w N/A N/A N/A N/A N/A logging basicConfig level N/A logging DEBUG format %(asctime)s %(levelname)s %(message)s filename log_file filemode w N/A console N/A N/A logging StreamHandler N/A N/A N/A console setLevel N/A N/A config N/A DEBUG N/A logging DEBUG N/A logging WARNING N/A formatter N/A N/A logging Formatter %(asctime)s %(levelname)s %(message)s N/A N/A N/A console setFormatter formatter N/A N/A N/A N/A N/A logging getLogger addHandler console N/A parse_args N/A N/A N/A N/A N/A arg_parser N/A N/A argparse ArgumentParser N/A N/A N/A arg_parser add_argument -o --port type int help WebSocket port to use N/A N/A N/A arg_parser add_argument -d --debug action store_true help Enable debug mode (prints logging messages) N/A N/A N/A arg_parser add_argument -t --testfile help Perform test actions in specified JSON file N/A N/A N/A arg_parser add_argument -ho --haroutput help Name of output HAR file N/A N/A N/A arg_parser add_argument -hd --hardirectory help Directory to store output HAR file N/A N/A N/A arg_parser add_argument -i --iterations help Do profiling task the specified number of times N/A N/A N/A arg_parser add_argument -a --average action store_true help Output the average results of the iterations N/A N/A N/A arg_parser add_argument -p --report action store_true help Generate HTML report N/A N/A N/A arg_parser add_argument -po --reportoutput help Name of output HTML file N/A N/A N/A arg_parser add_argument -pd --reportdirectory help Directory to store output HAR file N/A N/A N/A arg_parser add_argument -g --reportdebug action store_true help Generate report in debug mode, i.e. CDN script links will not bereplaced with source N/A N/A N/A arg_parser add_argument -b --browser action store_true help Open HTML report in browser after creation N/A N/A N/A arg_parser add_argument -r --har help Used specified name for JSON file N/A N/A N/A arg_parser parse_args N/A N/A N/A __name__ __main__ N/A N/A args N/A parse_args N/A N/A args port N/A N/A N/A config N/A WS_DEBUG_PORT N/A args port N/A N/A args debug N/A N/A N/A config N/A DEBUG True N/A N/A init_logging N/A N/A args har N/A N/A N/A write_report args N/A N/A har_as_dict N/A run args N/A N/A open N/A har_file_path args w f N/A N/A N/A N/A f write N/A N/A json dumps har_as_dict N/A N/A args report N/A N/A N/A write_report args