X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=profileinfo.php;h=bbd5fc8aa8ad877ccfd51576325855eb870ad148;hb=475a1daa03da8308f7356ebf01026fc1843d9b95;hp=388e0cdc096089b28b404161d355008808b7a8ce;hpb=3ea576aa259b9f990e18aa3c58c62036d80c3ce3;p=lhc%2Fweb%2Fwiklou.git
diff --git a/profileinfo.php b/profileinfo.php
index 388e0cdc09..bbd5fc8aa8 100644
--- a/profileinfo.php
+++ b/profileinfo.php
@@ -1,27 +1,43 @@
-
+
Profiling data
@@ -36,31 +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 );
+}
-define( 'MW_NO_SETUP', 1 );
-require_once( './includes/WebStart.php' );
-require_once("./AdminSettings.php");
+$dbr = wfGetDB( DB_SLAVE );
-if (!$wgEnableProfileInfo) {
- wfDie("disabled");
+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 "