Lines Matching full:html
32 # time in suspend/resume. The output is a single html file which can be
153 htmlfile = 'output.html'
390 if '<html>' not in res:
424 self.htmlfile = m.group('name')+'.html'
428 self.htmlfile = m.group('name')+'.html'
498 self.testdir+'/'+self.prefix+'_'+self.suspendmode+'.html'
1425 # contents: times for phase start/end, order/color data for html
1431 # parents/children, html id for timeline/callgraph
2045 html = ''
2057 html += '<li><b>'+node.name+drv+'</b>'
2059 html += '<ul>'+info+'</ul>'
2060 html += '</li>'
2062 html += '<ul>'
2064 html += self.printTopology(cnode)
2065 html += '</ul>'
2066 return html
2092 # only select devices that will actually show up in html
2717 # all the html properties to display it correctly
2725 self.html = ''
2736 self.html += '<div class="version"><a href="https://01.org/pm-graph">%s v%s</a></div>' \
2739 self.html += '<button id="showtest" class="logbtn btnfmt">log</button>'
2741 self.html += '<button id="showdmesg" class="logbtn btnfmt">dmesg</button>'
2743 self.html += '<button id="showftrace" class="logbtn btnfmt">ftrace</button>'
2745 self.html += headline_stamp.format(stamp['host'], stamp['kernel'],
2750 self.html += headline_sysinfo.format(stamp['man'], stamp['plat'], stamp['cpu'])
2909 self.html += html_devlist2
2910 self.html += html_devlist1.format('1')
2912 self.html += html_devlist1.format('')
2913 self.html += html_zoombox
2914 self.html += html_timeline.format('dmesg', self.height)
2924 # The html code needed to display the time scale
2953 self.html += output+'</div>\n'
3938 # for subsequent formatting in the html output file
4227 # write out the ftrace data converted to html
4263 out = '<!DOCTYPE html>\n<html>\n<head>\n\
4264 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4283 # Create summary html file for a series of tests
4287 # write the html header first (html head, css code, up to body start)
4288 html = summaryCSS('Summary - SleepGraph')
4359 html += '<div class="stamp">%s (%d tests: %s)</div>\n' % (title, len(testruns), ', '.join(desc))
4363 tdlink = '\t<td><a href="{0}">html</a></td>\n'
4372 html += '<table>\n<tr>\n' + th.format('#') +\
4379 html += th.format('PkgPC10') + th.format('SysLPI')
4381 html += th.format('Wifi')
4382 html += th.format('Detail')+'</tr>\n'
4383 # export list into html
4404 html += head.format('%d' % count, mode.upper(),
4411 html += headnone.format('%d' % count, mode.upper())
4417 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4429 html += td.format("%d" % (list[mode]['data'].index(d) + 1)) # row
4430 html += td.format(mode) # mode
4431 html += td.format(d[0]) # host
4432 html += td.format(d[1]) # kernel
4433 html += td.format(d[2]) # time
4434 html += td.format(d[6]) # result
4435 html += td.format(d[7]) # issues
4436 html += tdh.format('%.3f ms' % d[3], tHigh[0]) if d[3] else td.format('') # suspend
4437 html += tdh.format('%.3f ms' % d[4], tHigh[1]) if d[4] else td.format('') # resume
4438 html += td.format(d[8]) # sus_worst
4439 html += td.format('%.3f ms' % d[9]) if d[9] else td.format('') # sus_worst time
4440 html += td.format(d[10]) # res_worst
4441 html += td.format('%.3f ms' % d[11]) if d[11] else td.format('') # res_worst time
4443 html += td.format(d[12]) # pkg_pc10
4444 html += td.format(d[13]) # syslpi
4446 html += td.format(d[14]) # wifi
4447 html += tdlink.format(d[5]) if d[5] else td.format('') # url
4448 html += '</tr>\n'
4453 hf.write(html+'</table>\n</body>\n</html>\n')
4457 html = summaryCSS('Device Summary - SleepGraph', False)
4481 # generate the html
4485 tdlink = '\t<td align=center><a href="{0}">html</a></td>\n'
4491 html += '<div class="stamp">%s (%s devices > %d ms)</div><table>\n' % \
4493 html += '<tr>\n' + '<th align=right>Device Name</th>' +\
4505 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4506 html += tdr.format(data['name']) # name
4507 html += td.format('%.3f ms' % data['average']) # average
4508 html += td.format(data['count']) # count
4509 html += td.format('%.3f ms' % data['worst']) # worst
4510 html += td.format(data['host']) # host
4511 html += tdlink.format(data['url']) # url
4512 html += '</tr>\n'
4514 html += '</table>\n'
4518 hf.write(html+'</body>\n</html>\n')
4524 html = summaryCSS('Issues Summary - SleepGraph', False)
4527 # generate the html
4532 html += '<div class="stamp">%s (%s)</div><table>\n' % (title, subtitle)
4533 html += '<tr>\n' + th.format('Issue') + th.format('Count')
4535 html += th.format('Hosts')
4536 html += th.format('Tests') + th.format('Fail Rate') +\
4549 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4550 html += td.format('left', e['line']) # issue
4551 html += td.format('center', e['count']) # count
4553 html += td.format('center', len(e['urls'])) # hosts
4554 html += td.format('center', testtotal) # test count
4555 html += td.format('center', rate) # test rate
4556 html += td.format('center nowrap', '<br>'.join(links)) # links
4557 html += '</tr>\n'
4562 hf.write(html+'</table>\n'+extra+'</body>\n</html>\n')
4579 # Create the output html file from the resident test data
4583 # True if the html file was created, false if it failed
4598 # html function templates
4620 # html format variables
4645 devtl.html += thtml
4675 devtl.html += thtml
4694 devtl.html += thtml
4696 devtl.html += html_fail.format(testfail)
4773 devtl.html += devtl.html_tblock.format(bname, left, width, devtl.scaleH)
4780 devtl.html += devtl.html_phase.format(left, width, \
4788 devtl.html += html_error.format(right, id, type)
4824 devtl.html += devtl.html_device.format(dev['id'], \
4835 devtl.html += \
4850 devtl.html += \
4855 devtl.html += '</div>\n'
4858 devtl.html += '</div>\n</div>\n'
4863 devtl.html += '<div class="legend">\n'
4872 devtl.html += devtl.html_legend.format(order, p['color'], name, id)
4873 devtl.html += '</div>\n'
4879 hf.write(devtl.html)
4933 hf.write('</body>\n</html>\n')
4964 # write the html header first (html head, css code, up to body start)
4965 html_header = '<!DOCTYPE html>\n<html>\n<head>\n\
4966 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
5035 # Adds the javascript code to the output html
5037 # hf: the open html file pointer
5062 ' var html = "";\n'\
5087 ' html += htmlline;\n'\
5089 ' timescale.innerHTML = html;\n'\
5291 ' var html = \'<div style="padding-top:\'+pad+\'px"><t3> <b>\'+name+\':</b>\';\n'\
5293 ' html += " start=<b>"+info[1]+"</b>, end=<b>"+info[2]+"</b>";\n'\
5295 ' html += ", length<i>(w/o overhead)</i>=<b>"+info[3]+" ms</b>";\n'\
5297 ' html += ", return=<b>"+info[4]+"</b>";\n'\
5298 ' html += "</t3></div>";\n'\
5300 …' html += \'<table class=fstat style="padding-top:\'+(maxlen*5)+\'px;"><tr><th>Function</th>\';\…
5302 ' html += "<td class=vt>"+mlist[i][0]+"</td>";\n'\
5303 ' html += "</tr><tr><th>Calls</th>";\n'\
5305 ' html += "<td>"+mlist[i][1]+"</td>";\n'\
5306 ' html += "</tr><tr><th>Time(ms)</th>";\n'\
5308 ' html += "<td>"+mlist[i][2]+"</td>";\n'\
5309 ' html += "</tr><tr><th>Percent</th>";\n'\
5311 ' html += "<td>"+mlist[i][3]+"</td>";\n'\
5312 ' html += "</tr></table>";\n'\
5314 ' dd.innerHTML = html;\n'\
5333 ' var html = "<title>"+e.target.innerHTML+"</title>"+\n'\
5340 ' win.document.write(html+dt);\n'\
5350 ' var html = "";\n'\
5353 ' html += "<e id=target>"+text[i]+"</e>\\n";\n'\
5355 ' html += "<e>"+text[i]+"</e>\\n";\n'\
5357 ' html += text[i]+"\\n";\n'\
5360 ' win.document.write("<style>e{color:red}</style>"+title+"<pre>"+html+"</pre>");\n'\
6156 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
6176 doError('recreating this html output requires a dmesg file')
6227 def find_in_html(html, start, end, firstonly=True): argument
6228 cnt, out, list = len(html), [], []
6230 m = re.search(start, html)
6234 list = re.finditer(start, html)
6238 m = re.search(end, html[s:e])
6242 str = html[s:e]
6254 html = open(file, 'r').read()
6257 suspend = find_in_html(html, 'Kernel Suspend', 'ms')
6258 resume = find_in_html(html, 'Kernel Resume', 'ms')
6259 sysinfo = find_in_html(html, '<div class="stamp sysinfo">', '</div>')
6260 line = find_in_html(html, '<div class="stamp">', '</div>')
6270 error = find_in_html(html, '<table class="testfail"><tr><td>', '</td>')
6282 log = find_in_html(html, '<div id="dmesglog" style="display:none;">',
6307 low = find_in_html(html, 'freeze time: <b>', ' ms</b>')
6333 for line in html.split('\n'):
6384 data['funclist'] = find_in_html(html, '<div title="', '" class="traceevent"', False)
6423 if(not re.match('.*.html', filename)):
6441 createHTMLSummarySimple(testruns, os.path.join(outpath, 'summary.html'), title)
6442 pprint(' summary.html - tabular list of test data found')
6443 createHTMLDeviceSummary(testruns, os.path.join(outpath, 'summary-devices.html'), title)
6444 pprint(' summary-devices.html - kernel device list sorted by total execution time')
6445 createHTMLIssuesSummary(testruns, issues, os.path.join(outpath, 'summary-issues.html'), title)
6446 pprint(' summary-issues.html - kernel issues found sorted by frequency')
6672 ' a suspend/resume and capture the dmesg/ftrace output as an html timeline.\n'\
6675 ' HTML output: <hostname>_<mode>.html\n'\
6688 ' -addlogs Add the dmesg and ftrace logs to the html output\n'\
6718 ' -expandcg pre-expand the callgraph data in the html output (default: disabled)\n'\
6742 ' -summary dir Create a summary of tests in this dir [-genhtml builds missing html]\n'\
6744 ' -ftrace ftracefile Create HTML output using ftrace input (used with -dmesg)\n'\
6745 ' -dmesg dmesgfile Create HTML output using dmesg (used with -ftrace)\n'\