diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-08 17:19:23 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-08 17:19:23 +0000 |
commit | c71174da7aa45de5efc60cf8fb26789f2d690f3e (patch) | |
tree | fba6d09e707035ce844902b84bc842144107fcb5 /bench/bench_util.py | |
parent | 558a75bcb323c03dd7482555c7214062a363276f (diff) |
Incremental improvements to bench graph generation
- make revision number a link to that change on code.google.com
- clean up display and add help text
- make revision lines show up a bit more (light yellow)
Review URL: http://codereview.appspot.com/4839053
git-svn-id: http://skia.googlecode.com/svn/trunk@2062 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/bench_util.py')
-rw-r--r-- | bench/bench_util.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bench/bench_util.py b/bench/bench_util.py index 3bfe218c44..e36e6c624e 100644 --- a/bench/bench_util.py +++ b/bench/bench_util.py @@ -168,3 +168,11 @@ class LinearRegression: return max(0, (lower_right_y - upper_left_y) / regr_width) return 0 + +def CreateRevisionLink(revision_number): + """Returns HTML displaying the given revision number and linking to + that revision's change page at code.google.com, e.g. + http://code.google.com/p/skia/source/detail?r=2056 + """ + return '<a href="http://code.google.com/p/skia/source/detail?r=%s">%s</a>'%( + revision_number, revision_number) |