Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'd like to add a simple web part to one of our pages to track the load time of the page and display it to the user. Although I thought this would be common / easy to google it doesn't appear to be the case. How can something like this be done, simply?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I've never tried this with SharePoint, but you could investigate the following functionality:

Taken from http://stackoverflow.com/a/2818117, pertaining to ASP.NET.

You could turn on Trace. There you will get a bunch of information about the Page lifecycle( including time stamps), and other useful profiling information.

Turn on trace for a page in the Page directive at the top of your aspx file:

<%@ Page Trace="true" %>

Or dynamically in code:

Trace.IsEnabled = true;

Or globally in the app setting this in web.config:

<configuration>
 <system.web>
  <trace enabled="true" requestLimit="40" localOnly="false"/>
 </system.web>
</configuration>
share|improve this answer
    
Thanks, I'll take a look at the documentation and see if it applies to my situation :) –  ElvisLikeBear Aug 22 '12 at 23:23
    
Unfortunately this doesn't seem possible from within a web part :( –  ElvisLikeBear Aug 23 '12 at 4:30
    
I know with SharePoint 2010, these are displayed and are accessible via the "Developer Dashboard", however, it does appear people have done this in ASP.NET using ASCX controls. Perhaps, you can utilize that lead; stackoverflow.com/q/308713. –  Quinn Johns Aug 23 '12 at 19:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.