Ejemplo n.º 1
0
def parse_log(log_files_dir, output_dir, filter=None):
    """main function to read logs and generate output"""

    initialize_variables()

    extract_data_from_log(log_files_dir, filter)

    output_latency_stats(output_dir)
    initialize_variables()

    from output_by import output_stats_by_name

    output_stats_by_name(os.path.join(output_dir, 'all_tuples.txt'))

    from plot_groupchange_latency import plot_groupchange_latency

    plot_groupchange_latency(log_files_dir)

    from latency_over_time import failed_over_time, latency_over_time, throughput_over_time_bin

    failed_over_time(os.path.join(output_dir, 'all_tuples.txt'))

    latency_over_time(os.path.join(output_dir, 'all_tuples.txt'))

    throughput_over_time_bin(os.path.join(output_dir, 'all_tuples.txt'))

    # write the sum of msgs received by name servers
    from count_all_ns_msgs import count_msgs
    count_msgs(log_files_dir, output_dir)
Ejemplo n.º 2
0
def parse_log(log_files_dir, output_dir, local, filter = None):
    """main function to read logs and generate output"""
    
    initialize_variables()
    
    extract_data_from_log(log_files_dir, local, filter)

    output_latency_stats(output_dir)
    initialize_variables()
    
    from output_by import output_stats_by_name
    output_stats_by_name(os.path.join(output_dir, 'all_tuples.txt'))
Ejemplo n.º 3
0
def parse_log(log_files_dir, output_dir, local, filter = None):
    """main function to read logs and generate output"""
    
    initialize_variables()
    t1 = time.time()
    extract_data_from_log(log_files_dir, local, filter)
    t2 = time.time()
    
    output_latency_stats(output_dir)

    print 'Total time = ', int(t2 - t1), 'seconds'
    initialize_variables()
    
    from output_by import output_stats_by_name
    output_stats_by_name(os.path.join(output_dir, 'all_tuples.txt'))
    
    t3 = time.time()
    print 'Total time = ', int(t3-t1), 'seconds'
Ejemplo n.º 4
0
def parse_log(log_files_dir, output_dir, local, filter=None):
    """main function to read logs and generate output"""

    initialize_variables()
    t1 = time.time()
    extract_data_from_log(log_files_dir, local, filter)
    t2 = time.time()

    output_latency_stats(output_dir)

    print 'Total time = ', int(t2 - t1), 'seconds'
    initialize_variables()

    from output_by import output_stats_by_name
    output_stats_by_name(os.path.join(output_dir, 'all_tuples.txt'))

    t3 = time.time()
    print 'Total time = ', int(t3 - t1), 'seconds'