Timing V8 Collapso-5.
Posted: Wed Jul 04, 2007 11:55 am
If you want to see how much time Collapso is taking per page, then do the following:
Go to Design / Library / Layouts / Collapso-5 Dynamic Menu / Collapso-5 Menu
Paste the following code into the very top of the layout.
Paste the following code into the very bottom,
OK out.
Now when you do anything a diagnostic display "Duration: 0.12345" will be displayed after the menu. This is the time in seconds Collapso took to do it's stuff.
Uninstall by reversing the steps above.
Go to Design / Library / Layouts / Collapso-5 Dynamic Menu / Collapso-5 Menu
Paste the following code into the very top of the layout.
Code: Select all
<actinic:block php="true">
list($startusec, $startsec) = explode(" ", microtime());
</actinic:block>
Code: Select all
<actinic:block php="true">
list($endusec, $endsec) = explode(" ", microtime());
$duration = ((float)$endusec + (float)$endsec) - ((float)$startusec + (float)$startsec);
echo "<br><b>Duration: $duration </b>";
</actinic:block>
Now when you do anything a diagnostic display "Duration: 0.12345" will be displayed after the menu. This is the time in seconds Collapso took to do it's stuff.
Uninstall by reversing the steps above.