Beispiel #1
0
sar_file = "/sar.csv"
perf_file = "/perf.csv"
sysconfig_file = "/sysConfig.csv"

# Create DB file and empty it
open(DBConstants.DB_NAME, 'w').close()

# Data structures
system_config = {}
live_report_datasets = {}

# ======================= DATA IMPORT =============================
if using_sysconfig:
    system_config = SysConfigParser().parse(path_to_reports + sysconfig_file)
    my_sut_config = SUTConfig()
    my_sut_config.set(system_config)
else:
    my_sut_config = SUTConfig()
    my_sut_config.set_manual()

sar_dataframe = SarParser().parse(path_to_reports + sar_file)
perf_dataframe = PerfParser().parse(path_to_reports + perf_file)

start_TS = sar_dataframe[Parser.TIMESTAMP_STR].iloc[0]
end_TS = sar_dataframe[Parser.TIMESTAMP_STR].iloc[-1]

# ======================= PERSIST DATA IN SQLITE ====================
conn = sqlite3.connect(DBConstants.DB_NAME)
c = conn.cursor()
Beispiel #2
0
# Data structures
system_config = {}
benchmark_dataframes = {}
benchmark_SUTconfigs = {}
sar_dataframes = {}
pcm_dataframes = {}
perf_dataframes = {}

benchmark_datasets = {}

ht_linear_models = {}

# ======================= DATA IMPORT =============================
if not using_sysconfig:
    my_sut_config = SUTConfig()
    my_sut_config.set_manual()

for test in test_names:
    # benchmark_detailed_dataframe = BenchmarkParser().parse(benchmark_detailed_file, "detailed") # Only if using the detailed version of benchmark report file
    benchmark_dataframes[test] = BenchmarkParser().parse(path_to_tests + "/" + test + benchmark_file)
    sar_dataframes[test] = SarParser().parse(path_to_tests + "/" + test + sar_file)
    perf_dataframes[test] = PerfParser().parse(path_to_tests + "/" + test + perf_file)

    if using_sysconfig:
        print("Setting SysConfig file of test: " + test)
        system_config = SysConfigParser().parse(path_to_tests + "/" + test + sysconfig_file)
        benchmark_SUTconfigs[test] = SUTConfig()
        benchmark_SUTconfigs[test].set(system_config)

    if using_pcm: