X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=profileinfo.php;h=ef038c1153ce92e2cbe22fc6d51635b0ecbd71c6;hb=7726f1509373e41b693f5f60d07128da35a62b8e;hp=4e2a3d76ac8908c146e51bd220578e90eb8fd66d;hpb=94eb70b5296b40418bcf20214fb36ab7af2d3585;p=lhc%2Fweb%2Fwiklou.git
diff --git a/profileinfo.php b/profileinfo.php
index 4e2a3d76ac..ef038c1153 100644
--- a/profileinfo.php
+++ b/profileinfo.php
@@ -1,27 +1,43 @@
-
+
Profiling data
@@ -36,35 +52,50 @@
padding-right: 0.5em;
}
- td.time, td.count {
+ 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: #ffff80;
+ }
+ td.memoryp, td.mpc, td.mpr {
+ background-color: #80f8ff;
+ }
+ td.count, td,cpr {
+ background-color: #80ff80;
+ }
+ td.name {
+ background-color: #89f9f9;
+ }
+
+ tr:hover {
+ font-weight: bold;
+ }
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( 'profiling' ) ) {
+ echo "No 'profiling' 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 "