Debian Codegraph @

nfsometerlib/html/dataset.html

raw
1 <%doc>
2 Copyright 2012 NetApp, Inc. All Rights Reserved,
3 contribution by Weston Andros Adamson <[email protected]>
4
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; either version 2 of the License, or (at your option) any later
8 version.
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 </%doc>
13
14 <div class="dataset_container">
15 ${dataset.toc.anchor()}
16
17 % if dataset.anchor:
18 <a name="${dataset.anchor}"></a>
19 % endif
20
21 <h3>${dataset.toc.num()} ${dataset.toc.title()}</h3>
22
23 <div class="dataset">
24
25 % if dataset.subtitle:
26 <h4>${dataset.subtitle}</h4>
27 % endif
28
29 <div class="dataset_legend">
30
31 % if dataset.bucket_pie or dataset.bucket_legend:
32 <table><tr>
33 <td>
34 <div> ${dataset.description} </div>
35 <div class="hatch_legend"> ${dataset.bucket_legend} </div> </td>
36 <td>
37 ${dataset.bucket_pie}
38 % if dataset.bucket_pie:
39 <div class="pie_caption">
40 breakdown of group by operation across all traces
41 </div>
42 % endif
43 </td>
44 </tr></table>
45 % endif
46 </div>
47
48 <div class="dataset_graph_and_table">
49 ${dataset.graph_html}
50
51
52 <div class="dataset_select">
53 graph
54
55 <select class="graph_view">
56 <option value="all">everything</option>
57
58 <optgroup label="version:">
59 ${ ''.join([ '<option value="vers_%s">%s</option>' %
60 (x, x) for x in dataset.nfs_versions]) }
61 </optgroup>
62
63 % if len(dataset.selection.clients) > 1:
64 <optgroup label="clients:">
65 % for x in dataset.selection.clients:
66 <option value="client_${x}">client: ${x}</option>
67 % endfor
68 </optgroup>
69 % endif
70
71 % if len(dataset.selection.servers) > 1:
72 <optgroup label="servers:">
73 % for x in dataset.selection.servers:
74 <option value="server_${x}">server: ${x}</option>
75 % endfor
76 </optgroup>
77 % endif
78
79 % if len(dataset.selection.kernels) > 1:
80 <optgroup label="kernels:">
81 % for x in dataset.selection.kernels:
82 <option value="kernel_${x}">kernel: ${x}</option>
83 % endfor
84 </optgroup>
85 % endif
86
87 % if len(dataset.selection.paths) > 1:
88 <optgroup label="paths:">
89 % for x in dataset.selection.paths:
90 <option value="path_${x}">path: ${x}</option>
91 % endfor
92 </optgroup>
93 % endif
94
95 % if len(dataset.selection.detects) > 1:
96 <optgroup label="detected options:">
97 % for x in dataset.selection.detects:
98 % if x:
99 <option value="detect_${x}">detected options: ${x}</option>
100 % else:
101 <option value="detect_${x}">(no detected options)</option>
102 % endif
103 % endfor
104 </optgroup>
105 % endif
106
107 % if len(dataset.selection.tags) > 1:
108 <optgroup label="user defined tags:">
109 % for x in dataset.selection.tags:
110 % if x:
111 <option value="tag_${x}">tags: ${x}</option>
112 % else:
113 <option value="tag_${x}">(no tags)</option>
114 % endif
115 % endfor
116 </optgroup>
117 % endif
118 </select>
119
120 view
121
122 <select class="table_view">
123 <option value="averages">averages</option>
124
125 <option value="rundata">run data</option>
126
127 % if dataset.all_buckets:
128 <option value="hits">breakdown</option>
129 % endif
130
131 % if dataset.comparison_vals_map['config']:
132 <option value="config">config comparison</option>
133 % endif:
134
135 % if dataset.comparison_vals_map['mountopt']:
136 <option value="mountopt">mountopt comparison</option>
137 % endif:
138
139 % if dataset.comparison_vals_map['config']:
140 <option value="detect">detect comparison</option>
141 % endif:
142
143 % if dataset.comparison_vals_map['config']:
144 <option value="tag">tag comparison</option>
145 % endif:
146
147 </select>
148
149 <div class="dataset_better">
150 <span class="better_sym">${dataset.better_sym}</span>
151 <span class="better_str">${dataset.better_str}</span>
152 % for more in dataset.better_more:
153 <span class="better_more_str">${more}</span>
154 % endfor
155 </div>
156
157 </div>
158
159 <div class="dataset_tables">
160 ${dataset.tab.html()}
161 </div>
162 </div>
163
164 </div>
165 </div>
166