r24861 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24860‎ | r24861 | r24862 >
Date:21:05, 16 August 2007
Author:kim
Status:old
Tags:
Comment:
Now works (not pretty, but usable)
Modified paths:
  • /trunk/extensions/Wikidata/util/performance.cgi (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/util/performance.cgi
@@ -1,18 +1,17 @@
22 #!/bin/bash
33 echo "Content-type: text/html"
4 -
 4+echo
55 echo '<html>'
66 echo '<body>'
77 echo '<h1> performance statistics </h1>'
88 echo '<pre>'
9 -echo '=== Qcache ==='
 9+echo '<div style="color:#A00">=== Qcache ===</div>'
1010 echo 'show status like "Qcache%";' | mysql
11 -
1211 echo
13 -echo '== Innodb =='
 12+echo '<div style="color:#0A0">=== Innodb ===</div>'
1413 echo 'show status like "%buffer%";' | mysql
15 -
16 -echo '== Memory (1 Mb blocks) =='
 14+echo
 15+echo '<div style="color:#00A">=== Memory (1 Mb blocks) ===</div>'
1716 free -m
1817
1918 echo '</pre>'

Status & tagging log