Timing V8 Collapso-5.

Expanding / Collapsing, search engine friendly, Section menu.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Timing V8 Collapso-5.

Post by norman »

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.

Code: Select all

<actinic:block php="true">
list($startusec, $startsec) = explode(" ", microtime());
</actinic:block>

Paste the following code into the very bottom,

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>

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.
Norman
Post Reply