def run(args):
  har_gen = FlowProfiler(args.testfile, int(args.iterations))   \
            if args.iterations else FlowProfiler(args.testfile)

  # profiling_results is a list of lists containing HARs for each page in a run
  profiling_results = har_gen.profile()

  if args.average:
    return [merge_by_average(page_results) \
            for page_results in zip(*profiling_results)]
  else:
    return profiling_results[-1]
Run a test with the specified parameters, and return the HTTP Archive
dataset/ETHPy150Open linkedin/mobster/bin/mobster.py/run