Simple Notebook


In [35]:
%matplotlib inline
import matplotlib
import matplotlib.pyplot as plt
import numpy as np

import os
import fnmatch
import glob
import re
import csv as icsv

# import seaborn as sns

from scipy.interpolate import interp1d
from scipy.interpolate import spline

# pie chart
from pylab import *

import matplotlib.pylab as pylab
pylab.rcParams['figure.figsize'] = (9, 4)  # that's default image size

font = {'family' : 'normal',
        'weight' : 'bold',
        'size'   : 14}

matplotlib.rc('font', **font)

directory='/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable'
colors = ['#00bfff', '#696900', '#e0ffff', '#228b22' , '#ff69b4','#a52a2a','#FF0000', '#0000ff', '#ff00ff', '#00ffff', '#00FF00', '#d8bfd8', '#ffa412']
# colors = ['#0000ff', '#ff00ff', '#00ffff', '#00FF00', '#FF0000', '#ffa412']
#        [blue,     magenta,     sea blue,  green,     red,       orange]

In [36]:
%cd $directory
matches = []
total_graphs = 0
for root, dirnames, filenames in os.walk('.'):
  for filename in fnmatch.filter(filenames, 'stats.txt'):
    matches.append(os.path.join(root, filename))
    
print len(matches)

for statsfile in matches:
    statsdir = os.path.dirname(statsfile)
    %cd $directory
    print statsdir
    tuxname = os.path.normpath(statsdir)
    print tuxname
    # tuxname = tuxname[:-6] # remove '/m5out' from the path
    # print tuxname
    tuxname = os.path.basename(tuxname)
    print tuxname
    try:
        m = re.match('(.*)', tuxname)
        tux_num = m.group(1)
        print "tux_num is " + tux_num
    except AttributeError:
        print ('ERROR! coud not find tux_num in', statsdir)
        exit(0)
    
    %cd $statsdir
    csvfiles = []
    for myfile in os.listdir('.'):
        if fnmatch.fnmatch(myfile,'cum.core*.csv'):
            csvfiles.append(myfile)
    print csvfiles
    
    for csv in csvfiles:
        core_num = '-1'
        try:
            m = re.match('cum.core([0-9]).csv', csv)
            core_num = m.group(1)
            print ('core_num is ', core_num)
        except AttributeError:
            print ('*****DANGER***** coud not find core_num in', csv)
            
        # now let's plot some graph for the csv
        fig, ax1 = plt.subplots()
        
        # plot pd-gem5 interrupts
        # if os.path.isfile("pdgem5int.csv"):
        #     intdata = np.genfromtxt("pdgem5int.csv", delimiter=',', skip_header=1,
        #                         names=['IntSimSec', 'IntTime'])
        #     ax3 = fig.add_axes(ax1.get_position(), frameon=False) # to plot pd-gem5 interrupt lines
        #     # ax3.plot([0.1,0.3,0.5,0.7,0.9], [0.5, 0.5, 0.5, 0.5, 0.5], 'b--') # 
        #     ax3.plot(intdata['IntSimSec'], intdata['IntTime'], 'g--')
        #     ax3.set_xticks([]) # turn off the ax3 ticks
        #     ax3.set_yticks([])
        
        data = np.genfromtxt(csv, delimiter=',', skip_header=1,
                             names=['CumSimSec', 'Freq', 
                                    'B1' , 'IntUtil','FloatUtil','MemUtil',
                                    'B2' ,'SimSec'])
        
        ax1.plot(data['CumSimSec'], data['Freq'],colors[0], linewidth = 2, label='CoreFreq')
        ax1.set_ylim(100,1500)
        ax1.set_xlabel('Time(s)', fontsize=20, fontweight='bold')
        ax1.set_ylabel('Freq (MHz)', fontsize=20, fontweight='bold')
        lgd1 = ax1.legend(loc='upper left', bbox_to_anchor=[0,1.20])
        
        # ax2 = ax1.twinx()
        # ax2.plot(data['CumSimSec'], data['IntUtil'],colors[1], linewidth = 2, label='IntUtil')

        # ax2.set_ylabel('Utilization (%)', fontsize=20, fontweight='bold')
        # ax2.set_ylim(0,100)

        # ax2.plot(data['CumSimSec'], data['FloatUtil'],colors[2], linewidth = 2, label='FloatUtil') # seablue
        # ax2.plot(data['CumSimSec'], data['MemUtil'],colors[3], linewidth = 2, label='MemUtil') # green
        # ax2.plot(data['CumSimSec'], data['EthBW'],colors[4], linewidth = 2, label='NIC BW') # red
        # ax2.plot(data['CumSimSec'], data['RxBWPercent'], colors[3], linewidth = 2, linestyle = '--', label='RX NICBW') # green dotted
        # ax2.plot(data['CumSimSec'], data['TxBWPercent'],colors[5], linewidth = 2, linestyle = '--', label='TX NICBW') # orange dotted
        
        # try spline here
        # x_sm = np.array(data['CumSimSec'])
        # y_sm = np.array(data['EthBW'])
        # x_smooth = np.linspace(x_sm.min(), x_sm.max(), 2000)
        # y_smooth = spline(data['CumSimSec'], data['EthBW'], x_smooth)
        # ax2.plot(x_smooth, y_smooth,colors[3], label='NICBW smooth')
        
        # lgd2 = ax2.legend(loc='upper right', bbox_to_anchor=[1,1.30], ncol=2)
        # lgd2 = ax2.legend(loc='upper right', bbox_to_anchor=[1,1.30], ncol=2)

            
        matplotlib.rc('xtick', labelsize=18) 
        matplotlib.rc('ytick', labelsize=18)
        # making the tickmarks white, longer, and wider 
        ax1.tick_params(axis='both', length=4, width=2)
        # ax2.tick_params(axis='both', length=4, width=2)

        
        if (core_num == '-1'):
            ax1.set_title(tux_num + ' allcoresaverage', y=-0.25, fontsize=20)
            # fig.savefig('tux'+tux_num+'allcoresaverage.png', dpi=200, bbox_extra_artists=(lgd1,lgd2), bbox_inches='tight')
            fig.savefig(tux_num+'allcoresaverage.png', dpi=200, bbox_inches='tight')
        else:
            ax1.set_title(tux_num + ' core' + core_num, y=-0.25, fontsize=20)
            # fig.savefig('tux'+tux_num+'core'+core_num+'.png', dpi=200, bbox_extra_artists=(lgd1,lgd2), bbox_inches='tight')
            fig.savefig(tux_num+'core'+core_num+'.png', dpi=200, bbox_inches='tight')
        
        total_graphs = total_graphs + 1
        plt.show()
     
    # let's create freq-time distribution pie-chart
    ############# PIE CHART ####################
    print "Current working dir is %s" % (os.getcwd())
    PCcsvfiles = []
    for myfile in os.listdir('.'):
        if fnmatch.fnmatch(myfile,'*PCtimefreq.csv'):
            PCcsvfiles.append(myfile)
    print PCcsvfiles
    
    for csv in PCcsvfiles:
        core_num = '-1'
        try:
            m = re.match('core([0-9])PCtimefreq.csv', csv)
            core_num = m.group(1)
            print ('core_num is ', core_num)
        except AttributeError:
            print ('*****DANGER***** coud not find core_num in', csv)
        
        
        
        # data = np.genfromtxt(csv, delimiter=',', skip_header=1,
        #                      names=['Freq', 'PCtime'])
        
        # fig = plt.figure(1, figsize=(10,10))
        
        # explode = [0] * 13
        # plt.pie(data['PCtime'], explode = explode, colors=colors, labels=data['Freq'])
                # autopct='%1.0f%%', shadow=True)
        # plt.axis('equal')
        # plt.title(tux_num+'core'+core_num+'PCtime', y=-0.10, fontsize=20)
        # plt.show()
        # fig.savefig(tux_num+'core'+core_num+'PCtime.png', dpi=200, bbox_inches='tight')  
        ############################################
        
    ############# STACKED BAR #################
    PCdata = []
    data = np.genfromtxt('core0PCtimefreq.csv', delimiter=',', skip_header=1,
                         names=['Freq', 'PCtime'])
    # print data['PCtime']
    PCdata.append(data['PCtime'])
    data = np.genfromtxt('core1PCtimefreq.csv', delimiter=',', skip_header=1,
                         names=['Freq', 'PCtime'])
    # print data['PCtime']
    PCdata.append(data['PCtime'])
    data = np.genfromtxt('core2PCtimefreq.csv', delimiter=',', skip_header=1,
                         names=['Freq', 'PCtime'])
    # print data['PCtime']
    PCdata.append(data['PCtime'])
    data = np.genfromtxt('core3PCtimefreq.csv', delimiter=',', skip_header=1,
                         names=['Freq', 'PCtime'])
    # print data['PCtime']
    PCdata.append(data['PCtime'])
    
    myfigure = plt.figure(1, figsize = (9,6))
    PCrow = []
    for i in range (0,13):
        row = [PCdata[0][i], PCdata[1][i], PCdata[2][i], PCdata[3][i]]
        PCrow.append(row)
    legend_handles = []
    legend_labels = []
    legend_handles.append(Rectangle((0, 0), 1, 1, fc="w", fill=False, edgecolor='none', linewidth=0))
    legend_labels.append('Frequency (MHz)')
    freq = ['200', '300', '400', '500', '600', '700', '800', '900', '1000', '1100', '1200', '1300', '1400']
    X = range(4)
    Xlabels = [X[i] + 0.30 for i in range (4) ]
    xnames = ['core0', 'core1', 'core2', 'core3']
    bottom = [0] * 4 
    # sns_colors = sns.color_palette("hls", 14)
    # sns_colors = colors
    # plt.set_color_cycle(sns_colors)
    for i in range (0,13):
        # print PCrow[i]
        
        if (i == 0):
            abc = plt.bar(X, PCrow[i], color=colors[i%13], label = freq[i])
            legend_handles.append(abc)
            legend_labels.append(freq[i])
        else:
            plt.bar(X, PCrow[i], color=colors[i%13], bottom = bottom, label = freq[i])
            legend_handles.append(abc)
            legend_labels.append(freq[i])
        bottom = [sum(x) for x in zip(bottom, PCrow[i])]
        # print bottom
        
    plt.legend(loc='right', bbox_to_anchor=[1.3, 0.5], title='Frequency (MHz)')
    plt.xticks(Xlabels, xnames)
    plt.ylabel('%time spent at a frequency', fontsize=20, fontweight='bold')
    plt.ylim([0,100])
    plt.title(tux_num+'PCtime', y=-0.15, fontsize=20)
    print "DONE PLOTTING PCTIME and tux_num is %s" % (tux_num)
    myfigure.savefig(tux_num+'PCtime.png', dpi=200, bbox_inches='tight')
    # plt.show()
    
    # plot which core was big/LITTLE for how much time
    PCbigLITTLE = []
    with open('PCbigLITTLE.csv') as f:
        reader = icsv.reader(f)
        row1 = next(reader)
        for row in reader:
            row = [float(x) for x in row]
            PCbigLITTLE.append(row)
            
    myfigure = plt.figure(1, figsize = (9,6))
    bottom = [0] * 4 
    for i in range (0,2):

        # print bigPCdata[i]
        if (i == 0):
            abc = plt.bar(X, PCbigLITTLE[i], color=colors[0], label = 'LITTLE')
            legend_handles.append(abc)
            legend_labels.append('LITTLE')
        else:
            plt.bar(X, PCbigLITTLE[i], color=colors[12], bottom = bottom, label = 'big')
            legend_handles.append(abc)
            legend_labels.append('big')
        bottom = [sum(x) for x in zip(bottom, PCbigLITTLE[i])]
        # print bottom
        
    # plt.legend(loc='right', bbox_to_anchor=[1.3, 0.5], title='Frequency (MHz)')
    plt.xticks(Xlabels, xnames)
    plt.ylabel('%time spent as big/LITTLE', fontsize=20, fontweight='bold')
    plt.ylim([0,100])
    plt.title(tux_num+'PCbigLITTLE', y=-0.15, fontsize=20)
    myfigure.savefig(tux_num+'PCbigLITTLE.png', dpi=200, bbox_inches='tight')
    plt.show()
    
    bigPCdata = []
    with open('bigcorePCtimefreq.csv') as f:
        reader = icsv.reader(f)
        row1 = next(reader)
        for row in reader:
            row = [float(x) for x in row]
            bigPCdata.append(row)
            
    LITTLEPCdata = []
    with open('LITTLEcorePCtimefreq.csv') as f:
        reader = icsv.reader(f)
        row1 = next(reader)
        for row in reader:
            row = [float(x) for x in row]
            LITTLEPCdata.append(row)

    # let's plot for big
    myfigure = plt.figure(1, figsize = (9,6))
    subplot(121)
    bottom = [0] * 4 
    for i in range (0,13):

        # print bigPCdata[i]
        if (i == 0):
            abc = plt.bar(X, bigPCdata[i], color=colors[i%13], label = freq[i])
            legend_handles.append(abc)
            legend_labels.append(freq[i])
        else:
            plt.bar(X, bigPCdata[i], color=colors[i%13], bottom = bottom, label = freq[i])
            legend_handles.append(abc)
            legend_labels.append(freq[i])
        bottom = [sum(x) for x in zip(bottom, bigPCdata[i])]
        # print bottom
        
    # plt.legend(loc='right', bbox_to_anchor=[1.3, 0.5], title='Frequency (MHz)')
    plt.xticks(Xlabels, xnames)
    plt.ylabel('%time spent at a frequency', fontsize=20, fontweight='bold')
    plt.ylim([0,100])
    plt.title(tux_num+'bigPCtime', y=-0.15, fontsize=20)
    myfigure.savefig(tux_num+'bigPCtime.png', dpi=200, bbox_inches='tight')
    # plt.show()
    
    # plot for LITTLE
    # myfigure = plt.figure(1, figsize = (9,6))
    subplot(1,2,2)
    bottom = [0] * 4 
    for i in range (0,13):

        if (i == 0):
            abc = plt.bar(X, LITTLEPCdata[i], color=colors[i%13], label = freq[i])
            legend_handles.append(abc)
            legend_labels.append(freq[i])
        else:
            plt.bar(X, LITTLEPCdata[i], color=colors[i%13], bottom = bottom, label = freq[i])
            legend_handles.append(abc)
            legend_labels.append(freq[i])
        bottom = [sum(x) for x in zip(bottom, LITTLEPCdata[i])]
        # print bottom
        
    plt.legend(loc='right', bbox_to_anchor=[1.8, 0.5], title='Frequency (MHz)')
    plt.xticks(Xlabels, xnames)
    # plt.ylabel('%time spent at a frequency', fontsize=20, fontweight='bold')
    plt.ylim([0,100])
    plt.title(tux_num+'LITTLEPCtime', y=-0.15, fontsize=20)
    myfigure.savefig(tux_num+'LITTLEPCtime.png', dpi=200, bbox_inches='tight')
    plt.show()
    ###########################################
             
        
print ('total graphs plotted = ' , total_graphs)


/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
12
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./360buy
360buy
360buy
tux_num is 360buy
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/360buy
['cum.core2.csv', 'cum.core3.csv', 'cum.core0.csv', 'cum.core1.csv']
('core_num is ', '2')
('core_num is ', '3')
('core_num is ', '0')
('core_num is ', '1')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/360buy
['LITTLEcore1PCtimefreq.csv', 'core2PCtimefreq.csv', 'bigcorePCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'core0PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'core1PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'core3PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('core_num is ', '2')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('core_num is ', '1')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is 360buy
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./trial
trial
trial
tux_num is trial
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/trial
['cum.core2.csv', 'cum.core3.csv', 'cum.core0.csv', 'cum.core1.csv']
('core_num is ', '2')
('core_num is ', '3')
('core_num is ', '0')
('core_num is ', '1')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/trial
['bigcore2PCtimefreq.csv', 'core0PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'core2PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'core3PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'core1PCtimefreq.csv', 'bigcorePCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('core_num is ', '2')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('core_num is ', '1')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is trial
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./kingsoftoffice
kingsoftoffice
kingsoftoffice
tux_num is kingsoftoffice
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/kingsoftoffice
['cum.core3.csv', 'cum.core2.csv', 'cum.core1.csv', 'cum.core0.csv']
('core_num is ', '3')
('core_num is ', '2')
('core_num is ', '1')
('core_num is ', '0')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/kingsoftoffice
['bigcore0PCtimefreq.csv', 'core0PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'core2PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'bigcorePCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'core3PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'core1PCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('core_num is ', '2')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('core_num is ', '1')
DONE PLOTTING PCTIME and tux_num is kingsoftoffice
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./bbench
bbench
bbench
tux_num is bbench
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/bbench
['cum.core3.csv', 'cum.core2.csv', 'cum.core1.csv', 'cum.core0.csv']
('core_num is ', '3')
('core_num is ', '2')
('core_num is ', '1')
('core_num is ', '0')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/bbench
['core3PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'core1PCtimefreq.csv', 'bigcorePCtimefreq.csv', 'core0PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'core2PCtimefreq.csv']
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('core_num is ', '1')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('core_num is ', '2')
DONE PLOTTING PCTIME and tux_num is bbench
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./adobe
adobe
adobe
tux_num is adobe
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/adobe
['cum.core3.csv', 'cum.core2.csv', 'cum.core1.csv', 'cum.core0.csv']
('core_num is ', '3')
('core_num is ', '2')
('core_num is ', '1')
('core_num is ', '0')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/adobe
['core1PCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'core3PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'core2PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'core0PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'bigcorePCtimefreq.csv']
('core_num is ', '1')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('core_num is ', '2')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is adobe
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./ttpod
ttpod
ttpod
tux_num is ttpod
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/ttpod
['cum.core2.csv', 'cum.core3.csv', 'cum.core0.csv', 'cum.core1.csv']
('core_num is ', '2')
('core_num is ', '3')
('core_num is ', '0')
('core_num is ', '1')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/ttpod
['bigcore2PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'core2PCtimefreq.csv', 'core0PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'bigcorePCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'core1PCtimefreq.csv', 'core3PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'bigcore3PCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('core_num is ', '2')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('core_num is ', '1')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is ttpod
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./frozenbubble
frozenbubble
frozenbubble
tux_num is frozenbubble
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/frozenbubble
['cum.core2.csv', 'cum.core3.csv', 'cum.core0.csv', 'cum.core1.csv']
('core_num is ', '2')
('core_num is ', '3')
('core_num is ', '0')
('core_num is ', '1')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/frozenbubble
['LITTLEcore3PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'core1PCtimefreq.csv', 'core3PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'bigcorePCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'core2PCtimefreq.csv', 'core0PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('core_num is ', '1')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('core_num is ', '2')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is frozenbubble
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./baidumap
baidumap
baidumap
tux_num is baidumap
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/baidumap
['cum.core0.csv', 'cum.core1.csv', 'cum.core2.csv', 'cum.core3.csv']
('core_num is ', '0')
('core_num is ', '1')
('core_num is ', '2')
('core_num is ', '3')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/baidumap
['LITTLEcore2PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'bigcorePCtimefreq.csv', 'core2PCtimefreq.csv', 'core0PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'core1PCtimefreq.csv', 'core3PCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('core_num is ', '2')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('core_num is ', '1')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is baidumap
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./k9mail
k9mail
k9mail
tux_num is k9mail
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/k9mail
['cum.core1.csv', 'cum.core0.csv', 'cum.core3.csv', 'cum.core2.csv']
('core_num is ', '1')
('core_num is ', '0')
('core_num is ', '3')
('core_num is ', '2')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/k9mail
['LITTLEcore1PCtimefreq.csv', 'core2PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'core0PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'core1PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'core3PCtimefreq.csv', 'bigcorePCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('core_num is ', '2')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('core_num is ', '1')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is k9mail
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./sinaweibo
sinaweibo
sinaweibo
tux_num is sinaweibo
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/sinaweibo
['cum.core2.csv', 'cum.core3.csv', 'cum.core0.csv', 'cum.core1.csv']
('core_num is ', '2')
('core_num is ', '3')
('core_num is ', '0')
('core_num is ', '1')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/sinaweibo
['core3PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'core1PCtimefreq.csv', 'core0PCtimefreq.csv', 'bigcorePCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'core2PCtimefreq.csv']
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('core_num is ', '1')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('core_num is ', '2')
DONE PLOTTING PCTIME and tux_num is sinaweibo
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./mxplayer
mxplayer
mxplayer
tux_num is mxplayer
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/mxplayer
['cum.core2.csv', 'cum.core3.csv', 'cum.core0.csv', 'cum.core1.csv']
('core_num is ', '2')
('core_num is ', '3')
('core_num is ', '0')
('core_num is ', '1')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/mxplayer
['bigcore2PCtimefreq.csv', 'core2PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'core0PCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'bigcorePCtimefreq.csv', 'core1PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'core3PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'bigcore3PCtimefreq.csv']
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('core_num is ', '2')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('core_num is ', '1')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
DONE PLOTTING PCTIME and tux_num is mxplayer
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable
./netease
netease
netease
tux_num is netease
/research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/netease
['cum.core2.csv', 'cum.core3.csv', 'cum.core0.csv', 'cum.core1.csv']
('core_num is ', '2')
('core_num is ', '3')
('core_num is ', '0')
('core_num is ', '1')
Current working dir is /research/ljindal/git_aug26/sep2_newt_20ms_curcpu/enable/netease
['core0PCtimefreq.csv', 'LITTLEcore1PCtimefreq.csv', 'bigcore1PCtimefreq.csv', 'bigcore3PCtimefreq.csv', 'LITTLEcore3PCtimefreq.csv', 'core2PCtimefreq.csv', 'core3PCtimefreq.csv', 'LITTLEcorePCtimefreq.csv', 'LITTLEcore2PCtimefreq.csv', 'bigcore2PCtimefreq.csv', 'bigcore0PCtimefreq.csv', 'LITTLEcore0PCtimefreq.csv', 'bigcorePCtimefreq.csv', 'core1PCtimefreq.csv']
('core_num is ', '0')
('*****DANGER***** coud not find core_num in', 'LITTLEcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore1PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore3PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore3PCtimefreq.csv')
('core_num is ', '2')
('core_num is ', '3')
('*****DANGER***** coud not find core_num in', 'LITTLEcorePCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore2PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'LITTLEcore0PCtimefreq.csv')
('*****DANGER***** coud not find core_num in', 'bigcorePCtimefreq.csv')
('core_num is ', '1')
DONE PLOTTING PCTIME and tux_num is netease
('total graphs plotted = ', 48)

In [ ]:


In [ ]: