Lines Matching full:html
21 # https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overview.html
32 # time in suspend/resume. The output is a single html file which can be
154 htmlfile = 'output.html'
402 if '<html>' not in res:
436 self.htmlfile = m.group('name')+'.html'
440 self.htmlfile = m.group('name')+'.html'
510 self.testdir+'/'+self.prefix+'_'+self.suspendmode+'.html'
1466 # contents: times for phase start/end, order/color data for html
1472 # parents/children, html id for timeline/callgraph
2088 html = ''
2100 html += '<li><b>'+node.name+drv+'</b>'
2102 html += '<ul>'+info+'</ul>'
2103 html += '</li>'
2105 html += '<ul>'
2107 html += self.printTopology(cnode)
2108 html += '</ul>'
2109 return html
2135 # only select devices that will actually show up in html
2760 # all the html properties to display it correctly
2768 self.html = ''
2779 self.html += '<div class="version"><a href="https://www.intel.com/content/www/'+\
2780 'us/en/developer/topic-technology/open/pm-graph/overview.html">%s v%s</a></div>' \
2783 self.html += '<button id="showtest" class="logbtn btnfmt">log</button>'
2785 self.html += '<button id="showdmesg" class="logbtn btnfmt">dmesg</button>'
2787 self.html += '<button id="showftrace" class="logbtn btnfmt">ftrace</button>'
2789 self.html += headline_stamp.format(stamp['host'], stamp['kernel'],
2794 self.html += headline_sysinfo.format(stamp['man'], stamp['plat'], stamp['cpu'])
2953 self.html += html_devlist2
2954 self.html += html_devlist1.format('1')
2956 self.html += html_devlist1.format('')
2957 self.html += html_zoombox
2958 self.html += html_timeline.format('dmesg', self.height)
2968 # The html code needed to display the time scale
2997 self.html += output+'</div>\n'
3982 # for subsequent formatting in the html output file
4273 # write out the ftrace data converted to html
4309 out = '<!DOCTYPE html>\n<html>\n<head>\n\
4310 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4329 # Create summary html file for a series of tests
4333 # write the html header first (html head, css code, up to body start)
4334 html = summaryCSS('Summary - SleepGraph')
4406 html += '<div class="stamp">%s (%d tests: %s)</div>\n' % (title, len(testruns), ', '.join(desc))
4410 tdlink = '\t<td><a href="{0}">html</a></td>\n'
4419 html += '<table>\n<tr>\n' + th.format('#') +\
4426 html += th.format('PkgPC10') + th.format('SysLPI')
4428 html += th.format('Wifi')
4429 html += th.format('Detail')+'</tr>\n'
4430 # export list into html
4451 html += head.format('%d' % count, mode.upper(),
4458 html += headnone.format('%d' % count, mode.upper())
4464 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4476 html += td.format("%d" % (list[mode]['data'].index(d) + 1)) # row
4477 html += td.format(d[15]) # mode
4478 html += td.format(d[0]) # host
4479 html += td.format(d[1]) # kernel
4480 html += td.format(d[2]) # time
4481 html += td.format(d[6]) # result
4482 html += td.format(d[7]) # issues
4483 html += tdh.format('%.3f ms' % d[3], tHigh[0]) if d[3] else td.format('') # suspend
4484 html += tdh.format('%.3f ms' % d[4], tHigh[1]) if d[4] else td.format('') # resume
4485 html += td.format(d[8]) # sus_worst
4486 html += td.format('%.3f ms' % d[9]) if d[9] else td.format('') # sus_worst time
4487 html += td.format(d[10]) # res_worst
4488 html += td.format('%.3f ms' % d[11]) if d[11] else td.format('') # res_worst time
4490 html += td.format(d[12]) # pkg_pc10
4491 html += td.format(d[13]) # syslpi
4493 html += td.format(d[14]) # wifi
4494 html += tdlink.format(d[5]) if d[5] else td.format('') # url
4495 html += '</tr>\n'
4500 hf.write(html+'</table>\n</body>\n</html>\n')
4504 html = summaryCSS('Device Summary - SleepGraph', False)
4528 # generate the html
4532 tdlink = '\t<td align=center><a href="{0}">html</a></td>\n'
4538 html += '<div class="stamp">%s (%s devices > %d ms)</div><table>\n' % \
4540 html += '<tr>\n' + '<th align=right>Device Name</th>' +\
4552 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4553 html += tdr.format(data['name']) # name
4554 html += td.format('%.3f ms' % data['average']) # average
4555 html += td.format(data['count']) # count
4556 html += td.format('%.3f ms' % data['worst']) # worst
4557 html += td.format(data['host']) # host
4558 html += tdlink.format(data['url']) # url
4559 html += '</tr>\n'
4561 html += '</table>\n'
4565 hf.write(html+'</body>\n</html>\n')
4571 html = summaryCSS('Issues Summary - SleepGraph', False)
4574 # generate the html
4579 html += '<div class="stamp">%s (%s)</div><table>\n' % (title, subtitle)
4580 html += '<tr>\n' + th.format('Issue') + th.format('Count')
4582 html += th.format('Hosts')
4583 html += th.format('Tests') + th.format('Fail Rate') +\
4596 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4597 html += td.format('left', e['line']) # issue
4598 html += td.format('center', e['count']) # count
4600 html += td.format('center', len(e['urls'])) # hosts
4601 html += td.format('center', testtotal) # test count
4602 html += td.format('center', rate) # test rate
4603 html += td.format('center nowrap', '<br>'.join(links)) # links
4604 html += '</tr>\n'
4609 hf.write(html+'</table>\n'+extra+'</body>\n</html>\n')
4626 # Create the output html file from the resident test data
4630 # True if the html file was created, false if it failed
4645 # html function templates
4667 # html format variables
4692 devtl.html += thtml
4722 devtl.html += thtml
4741 devtl.html += thtml
4743 devtl.html += html_fail.format(testfail)
4820 devtl.html += devtl.html_tblock.format(bname, left, width, devtl.scaleH)
4827 devtl.html += devtl.html_phase.format(left, width, \
4835 devtl.html += html_error.format(right, id, type)
4871 devtl.html += devtl.html_device.format(dev['id'], \
4882 devtl.html += \
4897 devtl.html += \
4902 devtl.html += '</div>\n'
4905 devtl.html += '</div>\n</div>\n'
4910 devtl.html += '<div class="legend">\n'
4919 devtl.html += devtl.html_legend.format(order, p['color'], name, id)
4920 devtl.html += '</div>\n'
4926 hf.write(devtl.html)
4980 hf.write('</body>\n</html>\n')
5011 # write the html header first (html head, css code, up to body start)
5012 html_header = '<!DOCTYPE html>\n<html>\n<head>\n\
5013 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
5082 # Adds the javascript code to the output html
5084 # hf: the open html file pointer
5109 var html = "";
5134 html += htmlline;
5136 timescale.innerHTML = html;
5342 var html = '<div style="padding-top:'+pad+'px"><t3> <b>'+name+':</b>';
5344 html += " start=<b>"+info[1]+"</b>, end=<b>"+info[2]+"</b>";
5346 html += ", length<i>(w/o overhead)</i>=<b>"+info[3]+" ms</b>";
5348 html += ", return=<b>"+info[4]+"</b>";
5349 html += "</t3></div>";
5351 html += '<table class=fstat style="padding-top:'+(maxlen*5)+'px;"><tr><th>Function</th>';
5353 html += "<td class=vt>"+mlist[i][0]+"</td>";
5354 html += "</tr><tr><th>Calls</th>";
5356 html += "<td>"+mlist[i][1]+"</td>";
5357 html += "</tr><tr><th>Time(ms)</th>";
5359 html += "<td>"+mlist[i][2]+"</td>";
5360 html += "</tr><tr><th>Percent</th>";
5362 html += "<td>"+mlist[i][3]+"</td>";
5363 html += "</tr></table>";
5365 dd.innerHTML = html;
5384 var html = "<title>"+e.target.innerHTML+"</title>"+
5391 win.document.write(html+dt);
5401 var html = "";
5404 html += "<e id=target>"+text[i]+"</e>\n";
5406 html += "<e>"+text[i]+"</e>\n";
5408 html += text[i]+"\n";
5411 win.document.write("<style>e{color:red}</style>"+title+"<pre>"+html+"</pre>");
6224 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
6244 doError('recreating this html output requires a dmesg file')
6295 def find_in_html(html, start, end, firstonly=True): argument
6296 cnt, out, list = len(html), [], []
6298 m = re.search(start, html)
6302 list = re.finditer(start, html)
6306 m = re.search(end, html[s:e])
6310 str = html[s:e]
6323 html = open(file, 'r').read()
6325 html = ascii(open(file, 'rb').read())
6328 suspend = find_in_html(html, 'Kernel Suspend', 'ms')
6329 resume = find_in_html(html, 'Kernel Resume', 'ms')
6330 sysinfo = find_in_html(html, '<div class="stamp sysinfo">', '</div>')
6331 line = find_in_html(html, '<div class="stamp">', '</div>')
6341 error = find_in_html(html, '<table class="testfail"><tr><td>', '</td>')
6353 log = find_in_html(html, '<div id="dmesglog" style="display:none;">',
6384 low = find_in_html(html, 'freeze time: <b>', ' ms</b>')
6410 for line in html.split('\n'):
6461 data['funclist'] = find_in_html(html, '<div title="', '" class="traceevent"', False)
6500 if(not re.match(r'.*.html', filename)):
6518 createHTMLSummarySimple(testruns, os.path.join(outpath, 'summary.html'), title)
6519 pprint(' summary.html - tabular list of test data found')
6520 createHTMLDeviceSummary(testruns, os.path.join(outpath, 'summary-devices.html'), title)
6521 pprint(' summary-devices.html - kernel device list sorted by total execution time')
6522 createHTMLIssuesSummary(testruns, issues, os.path.join(outpath, 'summary-issues.html'), title)
6523 pprint(' summary-issues.html - kernel issues found sorted by frequency')
6749 ' a suspend/resume and capture the dmesg/ftrace output as an html timeline.\n'\
6752 ' HTML output: <hostname>_<mode>.html\n'\
6765 ' -addlogs Add the dmesg and ftrace logs to the html output\n'\
6796 ' -expandcg pre-expand the callgraph data in the html output (default: disabled)\n'\
6820 ' -summary dir Create a summary of tests in this dir [-genhtml builds missing html]\n'\
6822 ' -ftrace ftracefile Create HTML output using ftrace input (used with -dmesg)\n'\
6823 ' -dmesg dmesgfile Create HTML output using dmesg (used with -ftrace)\n'\