forked from benkaiser/mysql-slow-query-log-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
186 lines (163 loc) · 6.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<!--
MySQL Slow Query Log Visualizer
By Geoff Gaudreault (http://www.neurofuzzy.net)
Many thanks to:
List.js author Jonny Strömberg (www.jonnystromberg.se, www.listjs.com)
https://github.com/javve/list
jQuery Visualize author Scott Jehl, Filament Group scott@filamentgroup.com
https://github.com/filamentgroup/jQuery-Visualize
License (MIT)
Copyright (c) 2011 Geoff Gaudreault http://www.neurofuzzy.net
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
-->
<head>
<meta charset="utf-8">
<title>MySQL Slow Query Log Visualizer</title>
<!-- base -->
<link rel="stylesheet" href="css/style.css">
<script src="js/script.js"></script>
<!-- visualizer -->
<script type="text/javascript" src="js/enhance.js"></script>
<script type="text/javascript">
// Run capabilities test
enhance({
loadScripts: [
{src: 'js/excanvas.js', iecondition: 'all'},
'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js',
'js/visualize.jQuery.js'
],
loadStyles: [
'css/visualize.css',
'css/visualize-dark.css'
]
});
</script>
<!-- list -->
<script src="js/list.js"></script>
</head>
<body onload="start();">
<h1>MySQL Slow Query Log Visualizer</h1>
<div id="drop_zone">Drop log file here</div>
<output id="drop_result"></output>
<output id="load_result"></output>
<div id="chart_container">
<div id="chart"></div>
</div>
<br /><br />
<table id="time_list" cellpadding="5">
<caption>Slow Queries - Daily Average</caption>
<thead class="header">
<tr>
<td></td>
<th scope="col">00</th>
<th scope="col">01</th>
<th scope="col">02</th>
<th scope="col">03</th>
<th scope="col">04</th>
<th scope="col">05</th>
<th scope="col">06</th>
<th scope="col">07</th>
<th scope="col">08</th>
<th scope="col">09</th>
<th scope="col">10</th>
<th scope="col">11</th>
<th scope="col">12</th>
<th scope="col">13</th>
<th scope="col">14</th>
<th scope="col">15</th>
<th scope="col">16</th>
<th scope="col">17</th>
<th scope="col">18</th>
<th scope="col">19</th>
<th scope="col">20</th>
<th scope="col">21</th>
<th scope="col">22</th>
<th scope="col">23</th>
</tr>
</thead>
<tbody class="list"></tbody>
<tfoot>
<tr id="time_list_item">
<th scope="row" class="dayName"></th>
<td class="00"></td>
<td class="01"></td>
<td class="02"></td>
<td class="03"></td>
<td class="04"></td>
<td class="05"></td>
<td class="06"></td>
<td class="07"></td>
<td class="08"></td>
<td class="09"></td>
<td class="10"></td>
<td class="11"></td>
<td class="12"></td>
<td class="13"></td>
<td class="14"></td>
<td class="15"></td>
<td class="16"></td>
<td class="17"></td>
<td class="18"></td>
<td class="19"></td>
<td class="20"></td>
<td class="21"></td>
<td class="22"></td>
<td class="23"></td>
</tr>
</tfoot>
</table>
<table id="log_list">
<thead class="header">
<tr id="search">
<th colspan="10">
<span class="list_search">
<span id="search_count"></span>
<label for="log_list_search">Filter:</label>
<input id="log_list_search" class="search" />
</span>
</th>
</tr>
<tr>
<th scope="col" class="sort" data-sort="date">date</th>
<th scope="col" class="sort" data-sort="query_time">query time</th>
<th scope="col" class="sort" data-sort="lock_time">lock time</th>
<th scope="col" class="sort" data-sort="rows_sent">rows sent</th>
<th scope="col" class="sort" data-sort="rows_examined">rows examined</th>
<th scope="col" class="sort" data-sort="db_name">db name</th>
<th colspan="4" scope="col" class="sort" data-sort="query_string">query string</th>
</tr>
</thead>
<tbody class="list"></tbody>
<tfoot>
<tr id="log_list_item">
<th scope="row" class="date"></th>
<td class="query_time"></td>
<td class="lock_time"></td>
<td class="rows_sent"></td>
<td class="rows_examined"></td>
<td class="db_name"></td>
<td colspan="4" class="qs"><pre class="query_string"></pre></td>
</tr>
</tfoot>
</table>
<p class="credits">MySQL Slow Query Log Visualizer © 2011 <a href="http://www.neurofuzzy.net">Neurofuzzy Consulting</a></p>
</body>
</html>