First of all, what is Stopeo? With stopeo, You can easily check your server performance and keep an eye for any overloads. So...
*How to use stopeo.com from Wojtek Siudzinski on Vimeo.
So now when you know what is all about I will give you a tip how to make Stopeo works with ASP.NET web sites, as it does in my case with SiteAdmin CMS generated sites.
Stopeo requires just two things, to know when page render started and when it’s finished, so implementation is simple, insert following code into server side script part, for example like this:
<script runat="server">
Protected stopeoStart As DateTime
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
stopeoStart = Now End Sub
</script>
Then, in very bottom, of the page you just put following code:
<!-- stopeo: <%=Now.Subtract(stopeoStart).TotalSeconds%>s -->
So what it does is returning you time span in seconds format, like 0.000… Now you can feed Stopeo with it.
Follow us on Twitter
0 comments:
Post a Comment