Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2317)

Unified Diff: buildbot/status/web/build.py

Issue 20095: Add the time it takes to run a step in the build (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/tools/buildbot/pylibs/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « buildbot/README.google ('k') | buildbot/status/web/build_orig.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: buildbot/status/web/build.py
===================================================================
--- buildbot/status/web/build.py (revision 8779)
+++ buildbot/status/web/build.py (working copy)
@@ -104,10 +104,15 @@
data += "<ol>\n"
for s in b.getSteps():
name = s.getName()
- data += (" <li><a href=\"%s\">%s</a> [%s]\n"
+ time_to_run = 0
+ (start, end) = s.getTimes()
+ if start and end:
+ time_to_run = end - start
+ data += (" <li><a href=\"%s\">%s</a> [%s] [%d seconds]\n"
% (req.childLink("steps/%s" % urllib.quote(name)),
name,
- " ".join(s.getText())))
+ " ".join(s.getText()),
+ time_to_run))
if s.getLogs():
data += " <ol>\n"
for logfile in s.getLogs():
« no previous file with comments | « buildbot/README.google ('k') | buildbot/status/web/build_orig.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698