next change | 56:2bc880fe68a4 |
previous change | 54:3fb3f68e9627 |
Permissions: -rw-r--r--
45
45:978c387b91e3
viewer: doctype for html5
Anton Shestakov <av6@dwimlabs.net>
previous changes: 44:51371d1b3578
line |
diff
|
<!DOCTYPE html> |
1 | <html> |
<head> | |
<meta charset="utf-8"> | |
<title>hgperfcheck{% if changesets %} (rev {{ changesets[0]['rev'] }} and earlier){% end %}</title> | |
<style type="text/css"> | |
* { | |
font-family: monospace; | |
} | |
table { | |
border-spacing: 0; | |
} | |
tbody tr:hover { | |
background-color: silver; | |
} | |
td { | |
white-space: nowrap; | |
padding: 1px 5px; | |
} | |
td.hint { | |
width: 100%; | |
position: relative; | |
} | |
td.hint div { | |
position: absolute; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
top: 1px; | |
left: 5px; | |
right: 5px; | |
} | |
44
44:51371d1b3578
viewer: map all background colors into css classes, let's see how it works out
Anton Shestakov <av6@dwimlabs.net>
previous changes: 42:f40091264dcb
line |
diff
|
{% for rgb, cc in colormap.items() %}{# |
44:51371d1b3578
viewer: map all background colors into css classes, let's see how it works out
Anton Shestakov <av6@dwimlabs.net>
previous changes: 42:f40091264dcb
line |
diff
|
#}.{{ cc }} { background: rgb({{ '{},{},{}'.format(*rgb) }}); } |
44:51371d1b3578
viewer: map all background colors into css classes, let's see how it works out
Anton Shestakov <av6@dwimlabs.net>
previous changes: 42:f40091264dcb
line |
diff
|
{% end %} |
1 | </style> |
</head> | |
<body> | |
20
20:2121bac8dcf0
viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line |
diff
|
<header> |
36
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
<p> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
<a href="{{ setrev() }}">back to tip</a> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
{% set prevrev = changesets[0]['rev'] + 120 if changesets else None %} |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
{% if prevrev %}<a href="{{ setrev(prevrev) }}">prev page</a>{% end %} |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
{% set nextrev = changesets[-1]['rev'] - 1 if changesets else None %} |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
{% if nextrev > -1 %}<a href="{{ setrev(nextrev) }}">next page</a>{% end %} |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
<span style="color: #777;"> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
hover things for a tooltip; red means slow, green means fast; first |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
color and time means without .hg/cache, second means with .hg/cache. |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
</span> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
</p> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
<p> |
31
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
{% if local %} |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
local colors (<a href="{{ setlocal(None) }}">switch to global colors</a>) |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
{% else %} |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
global colors (<a href="{{ setlocal(1) }}">switch to local colors</a>) |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
{% end %} |
36
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
</p> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
<p> |
31
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
timings: |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
{% for mark, desc in marks.items() %} |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
-<a href="{{ setmarks(remove=mark) }}" title="{{ desc }}">{{ mark }}</a> |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
{% end %} |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
{% for mark, desc in moremarks.items() %} |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
+<a href="{{ setmarks(add=mark) }}" title="{{ desc }}">{{ mark }}</a> |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
{% end %} |
31:edd83c4dc2f0
viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line |
diff
|
*<a href="{{ setmarks() }}">all</a> |
54
54:3fb3f68e9627
viewer: selecting no benchmark results (in addition to all results)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 46:d89076c15b35
line |
diff
|
*<a href="{{ setmarks('') }}">none</a> |
36
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
</p> |
20
20:2121bac8dcf0
viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line |
diff
|
</header> |
1 | <table> |
<thead> | |
<tr> | |
<td>rev</td> | |
<td>node</td> | |
<td title="merge">M</td> | |
<td>branch</td> | |
<td>tags</td> | |
<td>user</td> | |
<td>desc</td> | |
{% for mark, desc in marks.items() %} | |
<td title="{{ desc }}">{{ mark }}</td> | |
{% end %} | |
</tr> | |
</thead> | |
<tbody> | |
{% for cset in changesets %} | |
<tr> | |
<td>{{ cset['rev'] }}</td> | |
41
41:db33172bc2ab
viewer: fix mistyped </a>
Anton Shestakov <av6@dwimlabs.net>
previous changes: 39:f435e3c69f4e
line |
diff
|
<td><a href="http://selenic.com/hg/rev/{{ cset['node'] }}">{{ cset['node'][:12] }}</a></td> |
1 | <td>{{ 'M' if len(cset['parents']) > 1 else '' }}</td> |
<td>{{ cset['branch'] }}</td> | |
<td>{{ ', '.join(cset['tags']) }}</td> | |
39
39:f435e3c69f4e
viewer: shorten usernames/emails by replacing domain part after @
Anton Shestakov <av6@dwimlabs.net>
previous changes: 36:82ab27e2178f
line |
diff
|
<td title="{{ showuser(cset['user']) }}">{{ showuser(cset['user'], short=True) }}</td> |
1 | <td class="hint"><div title="{{ cset['desc'] }}">{{ cset['desc'].partition('\n')[0] }}</div></td> |
46
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
{% for mark in marks %}{# |
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
#}{% set result = results.get(cset['node'], {}) %}{# |
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
#}{% set v1, c1, v2, c2 = result.get(mark, (None, None, None, None)) %}{# |
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
#}<td>{# |
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
#}<span{% if c1 is not None %} class="{{ colormap[c1] }}"{% end %}> </span>{# |
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
#}<span{% if c2 is not None %} class="{{ colormap[c2] }}"{% end %}> </span>{# |
55
55:119a07aacb84
viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line |
diff
|
#}<span title="{{ '{:.5f}s without .hg/cache'.format(v1) if v1 is not None else '(no data)' }}">{# |
55:119a07aacb84
viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line |
diff
|
#}{{ '{:.2f}'.format(v1) if v1 is not None else '-' }}{# |
55:119a07aacb84
viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line |
diff
|
#}</span>{# |
9
9:95a9dbed32a6
viewer: show second time in .html view
Anton Shestakov <engored@ya.ru>
previous changes: 1:cb057921cd8c
line |
diff
|
#}/{# |
55
55:119a07aacb84
viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line |
diff
|
#}<span title="{{ '{:.5f}s with .hg/cache'.format(v2) if v2 is not None else '(no data)' }}">{# |
55:119a07aacb84
viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line |
diff
|
#}{{ '{:.2f}'.format(v2) if v2 is not None else '-' }}{# |
55:119a07aacb84
viewer: drop s(econds) from short timings, use .5f for long timings
Anton Shestakov <av6@dwimlabs.net>
previous changes: 54:3fb3f68e9627
line |
diff
|
#}</span>{# |
46
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
#}</td> |
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
{% end %}{# |
46:d89076c15b35
viewer: save on newlines inside table rows
Anton Shestakov <av6@dwimlabs.net>
previous changes: 45:978c387b91e3
line |
diff
|
#}</tr> |
1 | {% end %} |
</tbody> | |
</table> | |
20
20:2121bac8dcf0
viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line |
diff
|
<footer> |
36
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
<p> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
<a href="{{ setrev() }}">back to tip</a> |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
{% if prevrev %}<a href="{{ setrev(prevrev) }}">prev page</a>{% end %} |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
{% if nextrev > -1 %}<a href="{{ setrev(nextrev) }}">next page</a>{% end %} |
36:82ab27e2178f
viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line |
diff
|
</p> |
20
20:2121bac8dcf0
viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line |
diff
|
</footer> |
1 | </body> |
</html> |