Created
January 11, 2011 19:08
-
-
Save bluesmoon/774939 to your computer and use it in GitHub Desktop.
Measure page generation time using boomerang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$t_serverstart = microtime(true); | |
// rest of page generation goes in here | |
$t_serverend = microtime(true); | |
?> | |
<script type="text/javascript"> | |
BOOMR.plugins.RT.setTimer("t_pagegen", <?php echo $t_serverend - $t_serverstart; ?>); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment