X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=profileinfo.php;h=b47033a7233f69c955115efe14dac5fdc18f9e66;hb=31098cc75936bf9dd5418ecc991c93363df4d76a;hp=7841f78ea021c1b5c8385500e8529debaad1f171;hpb=cccf275d2f0830ef11f8969392fb891df63d8ba9;p=lhc%2Fweb%2Fwiklou.git
diff --git a/profileinfo.php b/profileinfo.php
index 7841f78ea0..b47033a723 100644
--- a/profileinfo.php
+++ b/profileinfo.php
@@ -1,27 +1,43 @@
-
+
Profiling data
@@ -36,36 +52,46 @@
padding-right: 0.5em;
}
- td.time, td.timep, td.memoryp, td.count, td.cpr, td.tpc, td.mpc, td.tpr, td.mpr {
+ td.timep, td.memoryp, td.count, td.cpr, td.tpc, td.mpc, td.tpr, td.mpr {
text-align: right;
}
+ td.timep, td.tpc, td.tpr {
+ background-color: #fffff0;
+ }
+ td.memoryp, td.mpc, td.mpr {
+ background-color: #f0f8ff;
+ }
+ td.count, td,cpr {
+ background-color: #f0fff0;
+ }
+ td.name {
+ background-color: #f9f9f9;
+ }
Disabled\n";
+ echo "";
exit( 1 );
}
-foreach (array("wgDBadminuser", "wgDBadminpassword", "wgDBserver", "wgDBname") as $var)
- if ($$var === false) {
- echo "AdminSettings.php not correct\n";
- exit( 1 );
- }
+$dbr = wfGetDB( DB_SLAVE );
+if( !$dbr->tableExists( 'profileinfo' ) ) {
+ echo "No 'profileinfo' table exists, so we can't show you anything.
\n";
+ echo "If you want to log profiling data, create the table using "
+ . "maintenance/archives/patch-profiling.sql and enable "
+ . "\$wgProfileToDatabase.
\n";
+ echo "