def heat_test(): heat_plot = plots.HeatMap( k1=['intel_nhm', 'intel_nhm'], k2=['CLOCKS_UNHALTED_REF', 'INSTRUCTIONS_RETIRED'], outdir='.', prefix='CPI', header='Heat map of CPI', lariat_data='pass', save=True) heat_plot.plot(filelist[0]) assert os.path.isfile(heat_plot.outdir + '/' + heat_plot.fname + '.pdf') os.remove(heat_plot.fname + '.pdf')
def heat_map(request, pk): data = get_data(pk) hm = plots.HeatMap(k1={'intel_snb' : ['intel_snb','intel_snb'], 'intel_hsw' : ['intel_hsw','intel_hsw'], 'intel_ivb' : ['intel_ivb','intel_ivb'], 'intel_pmc3' : ['intel_pmc3','intel_pmc3'] }, k2={'intel_snb' : ['CLOCKS_UNHALTED_REF', 'INSTRUCTIONS_RETIRED'], 'intel_ivb' : ['CLOCKS_UNHALTED_REF', 'INSTRUCTIONS_RETIRED'], 'intel_hsw' : ['CLOCKS_UNHALTED_REF', 'INSTRUCTIONS_RETIRED'], 'intel_pmc3' : ['CLOCKS_UNHALTED_REF', 'INSTRUCTIONS_RETIRED'] }, lariat_data="pass") hm.plot(pk,job_data=data) return figure_to_response(hm)
def heat_map(pk): data = get_data(pk) hm = plots.HeatMap() return components(hm.plot(data))