Lines Matching full:html
32 # time in suspend/resume. The output is a single html file which can be
141 htmlfile = 'output.html'
392 self.htmlfile = m.group('name')+'.html'
396 self.htmlfile = m.group('name')+'.html'
457 self.testdir+'/'+self.prefix+'_'+self.suspendmode+'.html'
1264 # contents: times for phase start/end, order/color data for html
1270 # parents/children, html id for timeline/callgraph
1869 html = ''
1881 html += '<li><b>'+node.name+drv+'</b>'
1883 html += '<ul>'+info+'</ul>'
1884 html += '</li>'
1886 html += '<ul>'
1888 html += self.printTopology(cnode)
1889 html += '</ul>'
1890 return html
1916 # only select devices that will actually show up in html
2549 # all the html properties to display it correctly
2557 self.html = ''
2568 self.html += '<div class="version"><a href="https://01.org/pm-graph">%s v%s</a></div>' \
2571 self.html += '<button id="showtest" class="logbtn btnfmt">log</button>'
2573 self.html += '<button id="showdmesg" class="logbtn btnfmt">dmesg</button>'
2575 self.html += '<button id="showftrace" class="logbtn btnfmt">ftrace</button>'
2577 self.html += headline_stamp.format(stamp['host'], stamp['kernel'],
2582 self.html += headline_sysinfo.format(stamp['man'], stamp['plat'], stamp['cpu'])
2741 self.html += html_devlist2
2742 self.html += html_devlist1.format('1')
2744 self.html += html_devlist1.format('')
2745 self.html += html_zoombox
2746 self.html += html_timeline.format('dmesg', self.height)
2756 # The html code needed to display the time scale
2785 self.html += output+'</div>\n'
3700 # for subsequent formatting in the html output file
3992 # write out the ftrace data converted to html
4028 out = '<!DOCTYPE html>\n<html>\n<head>\n\
4029 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4048 # Create summary html file for a series of tests
4052 # write the html header first (html head, css code, up to body start)
4053 html = summaryCSS('Summary - SleepGraph')
4124 html += '<div class="stamp">%s (%d tests: %s)</div>\n' % (title, len(testruns), ', '.join(desc))
4128 tdlink = '\t<td><a href="{0}">html</a></td>\n'
4137 html += '<table>\n<tr>\n' + th.format('#') +\
4144 html += th.format('PkgPC10') + th.format('SysLPI')
4146 html += th.format('Wifi')
4147 html += th.format('Detail')+'</tr>\n'
4148 # export list into html
4169 html += head.format('%d' % count, mode.upper(),
4176 html += headnone.format('%d' % count, mode.upper())
4182 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4194 html += td.format("%d" % (list[mode]['data'].index(d) + 1)) # row
4195 html += td.format(mode) # mode
4196 html += td.format(d[0]) # host
4197 html += td.format(d[1]) # kernel
4198 html += td.format(d[2]) # time
4199 html += td.format(d[6]) # result
4200 html += td.format(d[7]) # issues
4201 html += tdh.format('%.3f ms' % d[3], tHigh[0]) if d[3] else td.format('') # suspend
4202 html += tdh.format('%.3f ms' % d[4], tHigh[1]) if d[4] else td.format('') # resume
4203 html += td.format(d[8]) # sus_worst
4204 html += td.format('%.3f ms' % d[9]) if d[9] else td.format('') # sus_worst time
4205 html += td.format(d[10]) # res_worst
4206 html += td.format('%.3f ms' % d[11]) if d[11] else td.format('') # res_worst time
4208 html += td.format(d[12]) # pkg_pc10
4209 html += td.format(d[13]) # syslpi
4211 html += td.format(d[14]) # wifi
4212 html += tdlink.format(d[5]) if d[5] else td.format('') # url
4213 html += '</tr>\n'
4218 hf.write(html+'</table>\n</body>\n</html>\n')
4222 html = summaryCSS('Device Summary - SleepGraph', False)
4246 # generate the html
4250 tdlink = '\t<td align=center><a href="{0}">html</a></td>\n'
4256 html += '<div class="stamp">%s (%s devices > %d ms)</div><table>\n' % \
4258 html += '<tr>\n' + '<th align=right>Device Name</th>' +\
4270 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4271 html += tdr.format(data['name']) # name
4272 html += td.format('%.3f ms' % data['average']) # average
4273 html += td.format(data['count']) # count
4274 html += td.format('%.3f ms' % data['worst']) # worst
4275 html += td.format(data['host']) # host
4276 html += tdlink.format(data['url']) # url
4277 html += '</tr>\n'
4279 html += '</table>\n'
4283 hf.write(html+'</body>\n</html>\n')
4289 html = summaryCSS('Issues Summary - SleepGraph', False)
4292 # generate the html
4297 html += '<div class="stamp">%s (%s)</div><table>\n' % (title, subtitle)
4298 html += '<tr>\n' + th.format('Issue') + th.format('Count')
4300 html += th.format('Hosts')
4301 html += th.format('Tests') + th.format('Fail Rate') +\
4314 html += '<tr class="'+(' '.join(rcls))+'">\n' if len(rcls) > 0 else '<tr>\n'
4315 html += td.format('left', e['line']) # issue
4316 html += td.format('center', e['count']) # count
4318 html += td.format('center', len(e['urls'])) # hosts
4319 html += td.format('center', testtotal) # test count
4320 html += td.format('center', rate) # test rate
4321 html += td.format('center nowrap', '<br>'.join(links)) # links
4322 html += '</tr>\n'
4327 hf.write(html+'</table>\n'+extra+'</body>\n</html>\n')
4344 # Create the output html file from the resident test data
4348 # True if the html file was created, false if it failed
4363 # html function templates
4385 # html format variables
4410 devtl.html += thtml
4440 devtl.html += thtml
4459 devtl.html += thtml
4461 devtl.html += html_fail.format(testfail)
4538 devtl.html += devtl.html_tblock.format(bname, left, width, devtl.scaleH)
4545 devtl.html += devtl.html_phase.format(left, width, \
4553 devtl.html += html_error.format(right, id, type)
4589 devtl.html += devtl.html_device.format(dev['id'], \
4603 devtl.html += \
4618 devtl.html += \
4623 devtl.html += '</div>\n'
4626 devtl.html += '</div>\n</div>\n'
4631 devtl.html += '<div class="legend">\n'
4640 devtl.html += devtl.html_legend.format(order, p['color'], name, id)
4641 devtl.html += '</div>\n'
4647 hf.write(devtl.html)
4701 hf.write('</body>\n</html>\n')
4732 # write the html header first (html head, css code, up to body start)
4733 html_header = '<!DOCTYPE html>\n<html>\n<head>\n\
4734 <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\
4803 # Adds the javascript code to the output html
4805 # hf: the open html file pointer
4830 ' var html = "";\n'\
4855 ' html += htmlline;\n'\
4857 ' timescale.innerHTML = html;\n'\
5059 ' var html = \'<div style="padding-top:\'+pad+\'px"><t3> <b>\'+name+\':</b>\';\n'\
5061 ' html += " start=<b>"+info[1]+"</b>, end=<b>"+info[2]+"</b>";\n'\
5063 ' html += ", length<i>(w/o overhead)</i>=<b>"+info[3]+" ms</b>";\n'\
5065 ' html += ", return=<b>"+info[4]+"</b>";\n'\
5066 ' html += "</t3></div>";\n'\
5068 …' html += \'<table class=fstat style="padding-top:\'+(maxlen*5)+\'px;"><tr><th>Function</th>\';\…
5070 ' html += "<td class=vt>"+mlist[i][0]+"</td>";\n'\
5071 ' html += "</tr><tr><th>Calls</th>";\n'\
5073 ' html += "<td>"+mlist[i][1]+"</td>";\n'\
5074 ' html += "</tr><tr><th>Time(ms)</th>";\n'\
5076 ' html += "<td>"+mlist[i][2]+"</td>";\n'\
5077 ' html += "</tr><tr><th>Percent</th>";\n'\
5079 ' html += "<td>"+mlist[i][3]+"</td>";\n'\
5080 ' html += "</tr></table>";\n'\
5082 ' dd.innerHTML = html;\n'\
5101 ' var html = "<title>"+e.target.innerHTML+"</title>"+\n'\
5108 ' win.document.write(html+dt);\n'\
5118 ' var html = "";\n'\
5121 ' html += "<e id=target>"+text[i]+"</e>\\n";\n'\
5123 ' html += "<e>"+text[i]+"</e>\\n";\n'\
5125 ' html += text[i]+"\\n";\n'\
5128 ' win.document.write("<style>e{color:red}</style>"+title+"<pre>"+html+"</pre>");\n'\
5965 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
5985 doError('recreating this html output requires a dmesg file')
6023 def find_in_html(html, start, end, firstonly=True): argument
6024 cnt, out, list = len(html), [], []
6026 m = re.search(start, html)
6030 list = re.finditer(start, html)
6034 m = re.search(end, html[s:e])
6038 str = html[s:e]
6050 html = open(file, 'r').read()
6053 suspend = find_in_html(html, 'Kernel Suspend', 'ms')
6054 resume = find_in_html(html, 'Kernel Resume', 'ms')
6055 sysinfo = find_in_html(html, '<div class="stamp sysinfo">', '</div>')
6056 line = find_in_html(html, '<div class="stamp">', '</div>')
6066 error = find_in_html(html, '<table class="testfail"><tr><td>', '</td>')
6078 log = find_in_html(html, '<div id="dmesglog" style="display:none;">',
6097 wifi = find_in_html(html, 'Wifi Resume: ', '</td>')
6100 low = find_in_html(html, 'freeze time: <b>', ' ms</b>')
6118 for line in html.split('\n'):
6167 data['funclist'] = find_in_html(html, '<div title="', '" class="traceevent"', False)
6206 if(not re.match('.*.html', filename)):
6224 createHTMLSummarySimple(testruns, os.path.join(outpath, 'summary.html'), title)
6225 pprint(' summary.html - tabular list of test data found')
6226 createHTMLDeviceSummary(testruns, os.path.join(outpath, 'summary-devices.html'), title)
6227 pprint(' summary-devices.html - kernel device list sorted by total execution time')
6228 createHTMLIssuesSummary(testruns, issues, os.path.join(outpath, 'summary-issues.html'), title)
6229 pprint(' summary-issues.html - kernel issues found sorted by frequency')
6455 ' a suspend/resume and capture the dmesg/ftrace output as an html timeline.\n'\
6458 ' HTML output: <hostname>_<mode>.html\n'\
6471 ' -addlogs Add the dmesg and ftrace logs to the html output\n'\
6499 ' -expandcg pre-expand the callgraph data in the html output (default: disabled)\n'\
6523 ' -summary dir Create a summary of tests in this dir [-genhtml builds missing html]\n'\
6525 ' -ftrace ftracefile Create HTML output using ftrace input (used with -dmesg)\n'\
6526 ' -dmesg dmesgfile Create HTML output using dmesg (used with -ftrace)\n'\