[llvm-commits] [zorg] r121011 - /zorg/trunk/lnt/lnt/util/NTEmailReport.py
Daniel Dunbar
daniel at zuster.org
Mon Dec 6 09:45:36 PST 2010
Author: ddunbar
Date: Mon Dec 6 11:45:36 2010
New Revision: 121011
URL: http://llvm.org/viewvc/llvm-project?rev=121011&view=rev
Log:
LNT: Add links to graphs in email reports.
Modified:
zorg/trunk/lnt/lnt/util/NTEmailReport.py
Modified: zorg/trunk/lnt/lnt/util/NTEmailReport.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/util/NTEmailReport.py?rev=121011&r1=121010&r2=121011&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/util/NTEmailReport.py (original)
+++ zorg/trunk/lnt/lnt/util/NTEmailReport.py Mon Dec 6 11:45:36 2010
@@ -9,6 +9,7 @@
import os
import smtplib
import sys
+import urllib
import StringIO
from lnt import viewer
@@ -307,6 +308,8 @@
continue
show_pset = items.items()[0][0] or len(items) > 1
+ pset_names = dict((pset, 'pset.%d' % i)
+ for i,pset in enumerate(ts_summary.parameter_sets))
print >>report
print >>report, name
print >>report, '-' * len(name)
@@ -353,11 +356,19 @@
""" % (graph_name)
else:
extra_cell_value = ""
+
+ # Link the regression to the chart of its performance.
+ pset_name = pset_names[pset]
+ form_data = urllib.urlencode([(pset_name, 'on'),
+ ('test.'+name, 'on')])
+ linked_name = '<a href="%s?%s">%s</a>' % (
+ os.path.join(report_url, "graph"), form_data, name)
+
pct_value = Util.PctCell(cr.pct_delta).render()
if cr.stddev is not None:
print >>html_report, """
<tr><td>%s%s</td>%s<td>%.4f</td><td>%.4f</td><td>%.4f</td></tr>""" %(
- name, extra_cell_value, pct_value,
+ linked_name, extra_cell_value, pct_value,
cr.previous, cr.current, cr.stddev)
else:
print >>html_report, """
More information about the llvm-commits
mailing list