Lines Matching defs: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
4274 # write out the ftrace data converted to html
4310 out = '<!DOCTYPE html>\n<html>\n<head>\n\
4311 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4330 # Create summary html file for a series of tests
4334 # write the html header first (html head, css code, up to body start)
4335 html = summaryCSS('Summary - SleepGraph')
4407 html += '<div class="stamp">%s (%d tests: %s)</div>\n' % (title, len(testruns), ', '.join(desc))
4411 tdlink = '\t<td><a href="{0}">html</a></td>\n'
4420 html += '<table>\n<tr>\n' + th.format('#') +\
4427 html += th.format('PkgPC10') + th.format('SysLPI')
4429 html += th.format('Wifi')
4430 html += th.format('Detail')+'</tr>\n'
4431 # export list into html
4452 html += head.format('%d' % count, mode.upper(),
4459 html += headnone.format('%d' % count, mode.upper())
4465 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4477 html += td.format("%d" % (list[mode]['data'].index(d) + 1)) # row
4478 html += td.format(d[15]) # mode
4479 html += td.format(d[0]) # host
4480 html += td.format(d[1]) # kernel
4481 html += td.format(d[2]) # time
4482 html += td.format(d[6]) # result
4483 html += td.format(d[7]) # issues
4484 html += tdh.format('%.3f ms' % d[3], tHigh[0]) if d[3] else td.format('') # suspend
4485 html += tdh.format('%.3f ms' % d[4], tHigh[1]) if d[4] else td.format('') # resume
4486 html += td.format(d[8]) # sus_worst
4487 html += td.format('%.3f ms' % d[9]) if d[9] else td.format('') # sus_worst time
4488 html += td.format(d[10]) # res_worst
4489 html += td.format('%.3f ms' % d[11]) if d[11] else td.format('') # res_worst time
4491 html += td.format(d[12]) # pkg_pc10
4492 html += td.format(d[13]) # syslpi
4494 html += td.format(d[14]) # wifi
4495 html += tdlink.format(d[5]) if d[5] else td.format('') # url
4496 html += '</tr>\n'
4501 hf.write(html+'</table>\n</body>\n</html>\n')
4505 html = summaryCSS('Device Summary - SleepGraph', False)
4529 # generate the html
4533 tdlink = '\t<td align=center><a href="{0}">html</a></td>\n'
4539 html += '<div class="stamp">%s (%s devices > %d ms)</div><table>\n' % \
4541 html += '<tr>\n' + '<th align=right>Device Name</th>' +\
4553 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4554 html += tdr.format(data['name']) # name
4555 html += td.format('%.3f ms' % data['average']) # average
4556 html += td.format(data['count']) # count
4557 html += td.format('%.3f ms' % data['worst']) # worst
4558 html += td.format(data['host']) # host
4559 html += tdlink.format(data['url']) # url
4560 html += '</tr>\n'
4562 html += '</table>\n'
4566 hf.write(html+'</body>\n</html>\n')
4572 html = summaryCSS('Issues Summary - SleepGraph', False)
4575 # generate the html
4580 html += '<div class="stamp">%s (%s)</div><table>\n' % (title, subtitle)
4581 html += '<tr>\n' + th.format('Issue') + th.format('Count')
4583 html += th.format('Hosts')
4584 html += th.format('Tests') + th.format('Fail Rate') +\
4597 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4598 html += td.format('left', e['line']) # issue
4599 html += td.format('center', e['count']) # count
4601 html += td.format('center', len(e['urls'])) # hosts
4602 html += td.format('center', testtotal) # test count
4603 html += td.format('center', rate) # test rate
4604 html += td.format('center nowrap', '<br>'.join(links)) # links
4605 html += '</tr>\n'
4610 hf.write(html+'</table>\n'+extra+'</body>\n</html>\n')
4627 # Create the output html file from the resident test data
4631 # True if the html file was created, false if it failed
4646 # html function templates
4668 # html format variables
4693 devtl.html += thtml
4723 devtl.html += thtml
4742 devtl.html += thtml
4744 devtl.html += html_fail.format(testfail)
4821 devtl.html += devtl.html_tblock.format(bname, left, width, devtl.scaleH)
4828 devtl.html += devtl.html_phase.format(left, width, \
4836 devtl.html += html_error.format(right, id, type)
4872 devtl.html += devtl.html_device.format(dev['id'], \
4883 devtl.html += \
4898 devtl.html += \
4903 devtl.html += '</div>\n'
4906 devtl.html += '</div>\n</div>\n'
4911 devtl.html += '<div class="legend">\n'
4920 devtl.html += devtl.html_legend.format(order, p['color'], name, id)
4921 devtl.html += '</div>\n'
4927 hf.write(devtl.html)
4981 hf.write('</body>\n</html>\n')
5012 # write the html header first (html head, css code, up to body start)
5013 html_header = '<!DOCTYPE html>\n<html>\n<head>\n\
5014 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
5083 # Adds the javascript code to the output html
5085 # hf: the open html file pointer
5110 var html = "";
5135 html += htmlline;
5137 timescale.innerHTML = html;
5343 var html = '<div style="padding-top:'+pad+'px"><t3> <b>'+name+':</b>';
5345 html += " start=<b>"+info[1]+"</b>, end=<b>"+info[2]+"</b>";
5347 html += ", length<i>(w/o overhead)</i>=<b>"+info[3]+" ms</b>";
5349 html += ", return=<b>"+info[4]+"</b>";
5350 html += "</t3></div>";
5352 html += '<table class=fstat style="padding-top:'+(maxlen*5)+'px;"><tr><th>Function</th>';
5354 html += "<td class=vt>"+mlist[i][0]+"</td>";
5355 html += "</tr><tr><th>Calls</th>";
5357 html += "<td>"+mlist[i][1]+"</td>";
5358 html += "</tr><tr><th>Time(ms)</th>";
5360 html += "<td>"+mlist[i][2]+"</td>";
5361 html += "</tr><tr><th>Percent</th>";
5363 html += "<td>"+mlist[i][3]+"</td>";
5364 html += "</tr></table>";
5366 dd.innerHTML = html;
5385 var html = "<title>"+e.target.innerHTML+"</title>"+
5392 win.document.write(html+dt);
5402 var html = "";
5405 html += "<e id=target>"+text[i]+"</e>\n";
5407 html += "<e>"+text[i]+"</e>\n";
5409 html += text[i]+"\n";
5412 win.document.write("<style>e{color:red}</style>"+title+"<pre>"+html+"</pre>");
6225 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
6245 doError('recreating this html output requires a dmesg file')
6296 def find_in_html(html, start, end, firstonly=True):
6297 cnt, out, list = len(html), [], []
6299 m = re.search(start, html)
6303 list = re.finditer(start, html)
6307 m = re.search(end, html[s:e])
6311 str = html[s:e]
6324 html = open(file, 'r').read()
6326 html = ascii(open(file, 'rb').read())
6329 suspend = find_in_html(html, 'Kernel Suspend', 'ms')
6330 resume = find_in_html(html, 'Kernel Resume', 'ms')
6331 sysinfo = find_in_html(html, '<div class="stamp sysinfo">', '</div>')
6332 line = find_in_html(html, '<div class="stamp">', '</div>')
6342 error = find_in_html(html, '<table class="testfail"><tr><td>', '</td>')
6354 log = find_in_html(html, '<div id="dmesglog" style="display:none;">',
6385 low = find_in_html(html, 'freeze time: <b>', ' ms</b>')
6411 for line in html.split('\n'):
6462 data['funclist'] = find_in_html(html, '<div title="', '" class="traceevent"', False)
6501 if(not re.match(r'.*.html', filename)):
6519 createHTMLSummarySimple(testruns, os.path.join(outpath, 'summary.html'), title)
6520 pprint(' summary.html - tabular list of test data found')
6521 createHTMLDeviceSummary(testruns, os.path.join(outpath, 'summary-devices.html'), title)
6522 pprint(' summary-devices.html - kernel device list sorted by total execution time')
6523 createHTMLIssuesSummary(testruns, issues, os.path.join(outpath, 'summary-issues.html'), title)
6524 pprint(' summary-issues.html - kernel issues found sorted by frequency')
6750 ' a suspend/resume and capture the dmesg/ftrace output as an html timeline.\n'\
6753 ' HTML output: <hostname>_<mode>.html\n'\
6766 ' -addlogs Add the dmesg and ftrace logs to the html output\n'\
6797 ' -expandcg pre-expand the callgraph data in the html output (default: disabled)\n'\
6821 ' -summary dir Create a summary of tests in this dir [-genhtml builds missing html]\n'\