Пример #1
0
def get_inst_per_xact(directory, mode):
    procs = ecperf_get_num_procs(directory)
    throughput = ecperf_get_throughput(directory)
    filename = directory + "/appserver_cpustat.summary"
    if os.access(filename, os.F_OK):
        print filename
        print mode
        cpi = float(hardware_counters.cpustat_get(filename, mode, "CPI"))
        inst_per_xact = ( 60 * cpu_freq * procs) / ( cpi * throughput )
        return inst_per_xact
    return 0
Пример #2
0
def get_inst_per_xact(directory, mode):
    procs = ecperf_get_num_procs(directory)
    throughput = ecperf_get_throughput(directory)
    filename = directory + "/appserver_cpustat.summary"
    if os.access(filename, os.F_OK):
        print filename
        print mode
        cpi = float(hardware_counters.cpustat_get(filename, mode, "CPI"))
        inst_per_xact = (60 * cpu_freq * procs) / (cpi * throughput)
        return inst_per_xact
    return 0
Пример #3
0
def get_cpustat_data(results_dir, mode, parameter):
    data = []

    directories = glob.glob(results_dir + "/*")
    for dir in directories:
        filename = dir + "/appserver_cpustat.summary"
        if os.access(filename, os.F_OK):
            procs = ecperf_get_num_procs(directory = dir)
            value = float(hardware_counters.cpustat_get(filename, mode, parameter))
            data.append([procs, value])
    return data
Пример #4
0
def get_cpustat_data(results_dir, mode, parameter):
    data = []

    directories = glob.glob(results_dir + "/*")
    for dir in directories:
        filename = dir + "/appserver_cpustat.summary"
        if os.access(filename, os.F_OK):
            procs = ecperf_get_num_procs(directory=dir)
            value = float(
                hardware_counters.cpustat_get(filename, mode, parameter))
            data.append([procs, value])
    return data