Lines Matching full:html

32 #	 time in suspend/resume. The output is a single html file which can be
153 htmlfile = 'output.html'
391 if '<html>' not in res:
425 self.htmlfile = m.group('name')+'.html'
429 self.htmlfile = m.group('name')+'.html'
499 self.testdir+'/'+self.prefix+'_'+self.suspendmode+'.html'
1443 # contents: times for phase start/end, order/color data for html
1449 # parents/children, html id for timeline/callgraph
2065 html = ''
2077 html += '<li><b>'+node.name+drv+'</b>'
2079 html += '<ul>'+info+'</ul>'
2080 html += '</li>'
2082 html += '<ul>'
2084 html += self.printTopology(cnode)
2085 html += '</ul>'
2086 return html
2112 # only select devices that will actually show up in html
2737 # all the html properties to display it correctly
2745 self.html = ''
2756 self.html += '<div class="version"><a href="https://01.org/pm-graph">%s v%s</a></div>' \
2759 self.html += '<button id="showtest" class="logbtn btnfmt">log</button>'
2761 self.html += '<button id="showdmesg" class="logbtn btnfmt">dmesg</button>'
2763 self.html += '<button id="showftrace" class="logbtn btnfmt">ftrace</button>'
2765 self.html += headline_stamp.format(stamp['host'], stamp['kernel'],
2770 self.html += headline_sysinfo.format(stamp['man'], stamp['plat'], stamp['cpu'])
2929 self.html += html_devlist2
2930 self.html += html_devlist1.format('1')
2932 self.html += html_devlist1.format('')
2933 self.html += html_zoombox
2934 self.html += html_timeline.format('dmesg', self.height)
2944 # The html code needed to display the time scale
2973 self.html += output+'</div>\n'
3958 # for subsequent formatting in the html output file
4249 # write out the ftrace data converted to html
4285 out = '<!DOCTYPE html>\n<html>\n<head>\n\
4286 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4305 # Create summary html file for a series of tests
4309 # write the html header first (html head, css code, up to body start)
4310 html = summaryCSS('Summary - SleepGraph')
4381 html += '<div class="stamp">%s (%d tests: %s)</div>\n' % (title, len(testruns), ', '.join(desc))
4385 tdlink = '\t<td><a href="{0}">html</a></td>\n'
4394 html += '<table>\n<tr>\n' + th.format('#') +\
4401 html += th.format('PkgPC10') + th.format('SysLPI')
4403 html += th.format('Wifi')
4404 html += th.format('Detail')+'</tr>\n'
4405 # export list into html
4426 html += head.format('%d' % count, mode.upper(),
4433 html += headnone.format('%d' % count, mode.upper())
4439 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4451 html += td.format("%d" % (list[mode]['data'].index(d) + 1)) # row
4452 html += td.format(mode) # mode
4453 html += td.format(d[0]) # host
4454 html += td.format(d[1]) # kernel
4455 html += td.format(d[2]) # time
4456 html += td.format(d[6]) # result
4457 html += td.format(d[7]) # issues
4458 html += tdh.format('%.3f ms' % d[3], tHigh[0]) if d[3] else td.format('') # suspend
4459 html += tdh.format('%.3f ms' % d[4], tHigh[1]) if d[4] else td.format('') # resume
4460 html += td.format(d[8]) # sus_worst
4461 html += td.format('%.3f ms' % d[9]) if d[9] else td.format('') # sus_worst time
4462 html += td.format(d[10]) # res_worst
4463 html += td.format('%.3f ms' % d[11]) if d[11] else td.format('') # res_worst time
4465 html += td.format(d[12]) # pkg_pc10
4466 html += td.format(d[13]) # syslpi
4468 html += td.format(d[14]) # wifi
4469 html += tdlink.format(d[5]) if d[5] else td.format('') # url
4470 html += '</tr>\n'
4475 hf.write(html+'</table>\n</body>\n</html>\n')
4479 html = summaryCSS('Device Summary - SleepGraph', False)
4503 # generate the html
4507 tdlink = '\t<td align=center><a href="{0}">html</a></td>\n'
4513 html += '<div class="stamp">%s (%s devices > %d ms)</div><table>\n' % \
4515 html += '<tr>\n' + '<th align=right>Device Name</th>' +\
4527 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4528 html += tdr.format(data['name']) # name
4529 html += td.format('%.3f ms' % data['average']) # average
4530 html += td.format(data['count']) # count
4531 html += td.format('%.3f ms' % data['worst']) # worst
4532 html += td.format(data['host']) # host
4533 html += tdlink.format(data['url']) # url
4534 html += '</tr>\n'
4536 html += '</table>\n'
4540 hf.write(html+'</body>\n</html>\n')
4546 html = summaryCSS('Issues Summary - SleepGraph', False)
4549 # generate the html
4554 html += '<div class="stamp">%s (%s)</div><table>\n' % (title, subtitle)
4555 html += '<tr>\n' + th.format('Issue') + th.format('Count')
4557 html += th.format('Hosts')
4558 html += th.format('Tests') + th.format('Fail Rate') +\
4571 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4572 html += td.format('left', e['line']) # issue
4573 html += td.format('center', e['count']) # count
4575 html += td.format('center', len(e['urls'])) # hosts
4576 html += td.format('center', testtotal) # test count
4577 html += td.format('center', rate) # test rate
4578 html += td.format('center nowrap', '<br>'.join(links)) # links
4579 html += '</tr>\n'
4584 hf.write(html+'</table>\n'+extra+'</body>\n</html>\n')
4601 # Create the output html file from the resident test data
4605 # True if the html file was created, false if it failed
4620 # html function templates
4642 # html format variables
4667 devtl.html += thtml
4697 devtl.html += thtml
4716 devtl.html += thtml
4718 devtl.html += html_fail.format(testfail)
4795 devtl.html += devtl.html_tblock.format(bname, left, width, devtl.scaleH)
4802 devtl.html += devtl.html_phase.format(left, width, \
4810 devtl.html += html_error.format(right, id, type)
4846 devtl.html += devtl.html_device.format(dev['id'], \
4857 devtl.html += \
4872 devtl.html += \
4877 devtl.html += '</div>\n'
4880 devtl.html += '</div>\n</div>\n'
4885 devtl.html += '<div class="legend">\n'
4894 devtl.html += devtl.html_legend.format(order, p['color'], name, id)
4895 devtl.html += '</div>\n'
4901 hf.write(devtl.html)
4955 hf.write('</body>\n</html>\n')
4986 # write the html header first (html head, css code, up to body start)
4987 html_header = '<!DOCTYPE html>\n<html>\n<head>\n\
4988 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
5057 # Adds the javascript code to the output html
5059 # hf: the open html file pointer
5084 ' var html = "";\n'\
5109 ' html += htmlline;\n'\
5111 ' timescale.innerHTML = html;\n'\
5313 ' var html = \'<div style="padding-top:\'+pad+\'px"><t3> <b>\'+name+\':</b>\';\n'\
5315 ' html += " start=<b>"+info[1]+"</b>, end=<b>"+info[2]+"</b>";\n'\
5317 ' html += ", length<i>(w/o overhead)</i>=<b>"+info[3]+" ms</b>";\n'\
5319 ' html += ", return=<b>"+info[4]+"</b>";\n'\
5320 ' html += "</t3></div>";\n'\
5322 …' html += \'<table class=fstat style="padding-top:\'+(maxlen*5)+\'px;"><tr><th>Function</th>\';\…
5324 ' html += "<td class=vt>"+mlist[i][0]+"</td>";\n'\
5325 ' html += "</tr><tr><th>Calls</th>";\n'\
5327 ' html += "<td>"+mlist[i][1]+"</td>";\n'\
5328 ' html += "</tr><tr><th>Time(ms)</th>";\n'\
5330 ' html += "<td>"+mlist[i][2]+"</td>";\n'\
5331 ' html += "</tr><tr><th>Percent</th>";\n'\
5333 ' html += "<td>"+mlist[i][3]+"</td>";\n'\
5334 ' html += "</tr></table>";\n'\
5336 ' dd.innerHTML = html;\n'\
5355 ' var html = "<title>"+e.target.innerHTML+"</title>"+\n'\
5362 ' win.document.write(html+dt);\n'\
5372 ' var html = "";\n'\
5375 ' html += "<e id=target>"+text[i]+"</e>\\n";\n'\
5377 ' html += "<e>"+text[i]+"</e>\\n";\n'\
5379 ' html += text[i]+"\\n";\n'\
5382 ' win.document.write("<style>e{color:red}</style>"+title+"<pre>"+html+"</pre>");\n'\
6177 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
6197 doError('recreating this html output requires a dmesg file')
6248 def find_in_html(html, start, end, firstonly=True): argument
6249 cnt, out, list = len(html), [], []
6251 m = re.search(start, html)
6255 list = re.finditer(start, html)
6259 m = re.search(end, html[s:e])
6263 str = html[s:e]
6275 html = open(file, 'r').read()
6278 suspend = find_in_html(html, 'Kernel Suspend', 'ms')
6279 resume = find_in_html(html, 'Kernel Resume', 'ms')
6280 sysinfo = find_in_html(html, '<div class="stamp sysinfo">', '</div>')
6281 line = find_in_html(html, '<div class="stamp">', '</div>')
6291 error = find_in_html(html, '<table class="testfail"><tr><td>', '</td>')
6303 log = find_in_html(html, '<div id="dmesglog" style="display:none;">',
6328 low = find_in_html(html, 'freeze time: <b>', ' ms</b>')
6354 for line in html.split('\n'):
6405 data['funclist'] = find_in_html(html, '<div title="', '" class="traceevent"', False)
6444 if(not re.match('.*.html', filename)):
6462 createHTMLSummarySimple(testruns, os.path.join(outpath, 'summary.html'), title)
6463 pprint(' summary.html - tabular list of test data found')
6464 createHTMLDeviceSummary(testruns, os.path.join(outpath, 'summary-devices.html'), title)
6465 pprint(' summary-devices.html - kernel device list sorted by total execution time')
6466 createHTMLIssuesSummary(testruns, issues, os.path.join(outpath, 'summary-issues.html'), title)
6467 pprint(' summary-issues.html - kernel issues found sorted by frequency')
6693 ' a suspend/resume and capture the dmesg/ftrace output as an html timeline.\n'\
6696 ' HTML output: <hostname>_<mode>.html\n'\
6709 ' -addlogs Add the dmesg and ftrace logs to the html output\n'\
6739 ' -expandcg pre-expand the callgraph data in the html output (default: disabled)\n'\
6763 ' -summary dir Create a summary of tests in this dir [-genhtml builds missing html]\n'\
6765 ' -ftrace ftracefile Create HTML output using ftrace input (used with -dmesg)\n'\
6766 ' -dmesg dmesgfile Create HTML output using dmesg (used with -ftrace)\n'\