Lines Matching full:html

32 #	 time in suspend/resume. The output is a single html file which can be
143 htmlfile = 'output.html'
394 self.htmlfile = m.group('name')+'.html'
398 self.htmlfile = m.group('name')+'.html'
459 self.testdir+'/'+self.prefix+'_'+self.suspendmode+'.html'
1341 # contents: times for phase start/end, order/color data for html
1347 # parents/children, html id for timeline/callgraph
1951 html = ''
1963 html += '<li><b>'+node.name+drv+'</b>'
1965 html += '<ul>'+info+'</ul>'
1966 html += '</li>'
1968 html += '<ul>'
1970 html += self.printTopology(cnode)
1971 html += '</ul>'
1972 return html
1998 # only select devices that will actually show up in html
2631 # all the html properties to display it correctly
2639 self.html = ''
2650 self.html += '<div class="version"><a href="https://01.org/pm-graph">%s v%s</a></div>' \
2653 self.html += '<button id="showtest" class="logbtn btnfmt">log</button>'
2655 self.html += '<button id="showdmesg" class="logbtn btnfmt">dmesg</button>'
2657 self.html += '<button id="showftrace" class="logbtn btnfmt">ftrace</button>'
2659 self.html += headline_stamp.format(stamp['host'], stamp['kernel'],
2664 self.html += headline_sysinfo.format(stamp['man'], stamp['plat'], stamp['cpu'])
2823 self.html += html_devlist2
2824 self.html += html_devlist1.format('1')
2826 self.html += html_devlist1.format('')
2827 self.html += html_zoombox
2828 self.html += html_timeline.format('dmesg', self.height)
2838 # The html code needed to display the time scale
2867 self.html += output+'</div>\n'
3783 # for subsequent formatting in the html output file
4075 # write out the ftrace data converted to html
4111 out = '<!DOCTYPE html>\n<html>\n<head>\n\
4112 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4131 # Create summary html file for a series of tests
4135 # write the html header first (html head, css code, up to body start)
4136 html = summaryCSS('Summary - SleepGraph')
4207 html += '<div class="stamp">%s (%d tests: %s)</div>\n' % (title, len(testruns), ', '.join(desc))
4211 tdlink = '\t<td><a href="{0}">html</a></td>\n'
4220 html += '<table>\n<tr>\n' + th.format('#') +\
4227 html += th.format('PkgPC10') + th.format('SysLPI')
4229 html += th.format('Wifi')
4230 html += th.format('Detail')+'</tr>\n'
4231 # export list into html
4252 html += head.format('%d' % count, mode.upper(),
4259 html += headnone.format('%d' % count, mode.upper())
4265 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4277 html += td.format("%d" % (list[mode]['data'].index(d) + 1)) # row
4278 html += td.format(mode) # mode
4279 html += td.format(d[0]) # host
4280 html += td.format(d[1]) # kernel
4281 html += td.format(d[2]) # time
4282 html += td.format(d[6]) # result
4283 html += td.format(d[7]) # issues
4284 html += tdh.format('%.3f ms' % d[3], tHigh[0]) if d[3] else td.format('') # suspend
4285 html += tdh.format('%.3f ms' % d[4], tHigh[1]) if d[4] else td.format('') # resume
4286 html += td.format(d[8]) # sus_worst
4287 html += td.format('%.3f ms' % d[9]) if d[9] else td.format('') # sus_worst time
4288 html += td.format(d[10]) # res_worst
4289 html += td.format('%.3f ms' % d[11]) if d[11] else td.format('') # res_worst time
4291 html += td.format(d[12]) # pkg_pc10
4292 html += td.format(d[13]) # syslpi
4294 html += td.format(d[14]) # wifi
4295 html += tdlink.format(d[5]) if d[5] else td.format('') # url
4296 html += '</tr>\n'
4301 hf.write(html+'</table>\n</body>\n</html>\n')
4305 html = summaryCSS('Device Summary - SleepGraph', False)
4329 # generate the html
4333 tdlink = '\t<td align=center><a href="{0}">html</a></td>\n'
4339 html += '<div class="stamp">%s (%s devices > %d ms)</div><table>\n' % \
4341 html += '<tr>\n' + '<th align=right>Device Name</th>' +\
4353 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4354 html += tdr.format(data['name']) # name
4355 html += td.format('%.3f ms' % data['average']) # average
4356 html += td.format(data['count']) # count
4357 html += td.format('%.3f ms' % data['worst']) # worst
4358 html += td.format(data['host']) # host
4359 html += tdlink.format(data['url']) # url
4360 html += '</tr>\n'
4362 html += '</table>\n'
4366 hf.write(html+'</body>\n</html>\n')
4372 html = summaryCSS('Issues Summary - SleepGraph', False)
4375 # generate the html
4380 html += '<div class="stamp">%s (%s)</div><table>\n' % (title, subtitle)
4381 html += '<tr>\n' + th.format('Issue') + th.format('Count')
4383 html += th.format('Hosts')
4384 html += th.format('Tests') + th.format('Fail Rate') +\
4397 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4398 html += td.format('left', e['line']) # issue
4399 html += td.format('center', e['count']) # count
4401 html += td.format('center', len(e['urls'])) # hosts
4402 html += td.format('center', testtotal) # test count
4403 html += td.format('center', rate) # test rate
4404 html += td.format('center nowrap', '<br>'.join(links)) # links
4405 html += '</tr>\n'
4410 hf.write(html+'</table>\n'+extra+'</body>\n</html>\n')
4427 # Create the output html file from the resident test data
4431 # True if the html file was created, false if it failed
4446 # html function templates
4468 # html format variables
4493 devtl.html += thtml
4523 devtl.html += thtml
4542 devtl.html += thtml
4544 devtl.html += html_fail.format(testfail)
4621 devtl.html += devtl.html_tblock.format(bname, left, width, devtl.scaleH)
4628 devtl.html += devtl.html_phase.format(left, width, \
4636 devtl.html += html_error.format(right, id, type)
4672 devtl.html += devtl.html_device.format(dev['id'], \
4686 devtl.html += \
4701 devtl.html += \
4706 devtl.html += '</div>\n'
4709 devtl.html += '</div>\n</div>\n'
4714 devtl.html += '<div class="legend">\n'
4723 devtl.html += devtl.html_legend.format(order, p['color'], name, id)
4724 devtl.html += '</div>\n'
4730 hf.write(devtl.html)
4784 hf.write('</body>\n</html>\n')
4815 # write the html header first (html head, css code, up to body start)
4816 html_header = '<!DOCTYPE html>\n<html>\n<head>\n\
4817 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4886 # Adds the javascript code to the output html
4888 # hf: the open html file pointer
4913 ' var html = "";\n'\
4938 ' html += htmlline;\n'\
4940 ' timescale.innerHTML = html;\n'\
5142 ' var html = \'<div style="padding-top:\'+pad+\'px"><t3> <b>\'+name+\':</b>\';\n'\
5144 ' html += " start=<b>"+info[1]+"</b>, end=<b>"+info[2]+"</b>";\n'\
5146 ' html += ", length<i>(w/o overhead)</i>=<b>"+info[3]+" ms</b>";\n'\
5148 ' html += ", return=<b>"+info[4]+"</b>";\n'\
5149 ' html += "</t3></div>";\n'\
5151 …' html += \'<table class=fstat style="padding-top:\'+(maxlen*5)+\'px;"><tr><th>Function</th>\';\…
5153 ' html += "<td class=vt>"+mlist[i][0]+"</td>";\n'\
5154 ' html += "</tr><tr><th>Calls</th>";\n'\
5156 ' html += "<td>"+mlist[i][1]+"</td>";\n'\
5157 ' html += "</tr><tr><th>Time(ms)</th>";\n'\
5159 ' html += "<td>"+mlist[i][2]+"</td>";\n'\
5160 ' html += "</tr><tr><th>Percent</th>";\n'\
5162 ' html += "<td>"+mlist[i][3]+"</td>";\n'\
5163 ' html += "</tr></table>";\n'\
5165 ' dd.innerHTML = html;\n'\
5184 ' var html = "<title>"+e.target.innerHTML+"</title>"+\n'\
5191 ' win.document.write(html+dt);\n'\
5201 ' var html = "";\n'\
5204 ' html += "<e id=target>"+text[i]+"</e>\\n";\n'\
5206 ' html += "<e>"+text[i]+"</e>\\n";\n'\
5208 ' html += text[i]+"\\n";\n'\
5211 ' win.document.write("<style>e{color:red}</style>"+title+"<pre>"+html+"</pre>");\n'\
6005 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
6025 doError('recreating this html output requires a dmesg file')
6074 def find_in_html(html, start, end, firstonly=True): argument
6075 cnt, out, list = len(html), [], []
6077 m = re.search(start, html)
6081 list = re.finditer(start, html)
6085 m = re.search(end, html[s:e])
6089 str = html[s:e]
6101 html = open(file, 'r').read()
6104 suspend = find_in_html(html, 'Kernel Suspend', 'ms')
6105 resume = find_in_html(html, 'Kernel Resume', 'ms')
6106 sysinfo = find_in_html(html, '<div class="stamp sysinfo">', '</div>')
6107 line = find_in_html(html, '<div class="stamp">', '</div>')
6117 error = find_in_html(html, '<table class="testfail"><tr><td>', '</td>')
6129 log = find_in_html(html, '<div id="dmesglog" style="display:none;">',
6148 wifi = find_in_html(html, 'Wifi Resume: ', '</td>')
6151 low = find_in_html(html, 'freeze time: <b>', ' ms</b>')
6177 for line in html.split('\n'):
6226 data['funclist'] = find_in_html(html, '<div title="', '" class="traceevent"', False)
6265 if(not re.match('.*.html', filename)):
6283 createHTMLSummarySimple(testruns, os.path.join(outpath, 'summary.html'), title)
6284 pprint(' summary.html - tabular list of test data found')
6285 createHTMLDeviceSummary(testruns, os.path.join(outpath, 'summary-devices.html'), title)
6286 pprint(' summary-devices.html - kernel device list sorted by total execution time')
6287 createHTMLIssuesSummary(testruns, issues, os.path.join(outpath, 'summary-issues.html'), title)
6288 pprint(' summary-issues.html - kernel issues found sorted by frequency')
6514 ' a suspend/resume and capture the dmesg/ftrace output as an html timeline.\n'\
6517 ' HTML output: <hostname>_<mode>.html\n'\
6530 ' -addlogs Add the dmesg and ftrace logs to the html output\n'\
6558 ' -expandcg pre-expand the callgraph data in the html output (default: disabled)\n'\
6582 ' -summary dir Create a summary of tests in this dir [-genhtml builds missing html]\n'\
6584 ' -ftrace ftracefile Create HTML output using ftrace input (used with -dmesg)\n'\
6585 ' -dmesg dmesgfile Create HTML output using dmesg (used with -ftrace)\n'\