Performance

  • Thread starter Thread starter Guest
  • Start date Start date
Hi Dave,

I'm not aware of such documentation exists to describe when the default
trace messages are output for which event. However, if you take a look at
System.Web.UI.Page.ProcessRequestMain using Reflector
(http://www.aisto.com/roeder/dotnet/), you can see the details such as:

if (context.TraceIsEnabled)
{
this.Trace.Write("aspx.page", "Begin PreInit");
}
...
this.PerformPreInit();
...
if (context.TraceIsEnabled)
{
this.Trace.Write("aspx.page", "End PreInit");
}
...

If the page is hang, I think you will need to use windbg to break in the
asp.net worker process to see the call stack of the hanging thread:

#Troubleshooting ASP.NET using WinDbg and the SOS extension
http://support.microsoft.com/kb/892277


If you need to know which method is the slowest, you need to use Profiler:

#Eric Jarvi : Beta 2 Whidbey ASP.NET Profiler HOWTO
https://blogs.msdn.com/ejarvi/archive/2005/04/08/406578.aspx

Using the "instrumentation" method and you will see which method is slowest.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Dave,

What do you mean ASP.NET is slow? Do you mean using an empty WebForm in a
simple Website is also slow?

Yes the code profiling feature is only available in Visual Studio Team
System:

#Product Feature Comparisons
http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Dave,

Profiling should reveal which method is the slowest one. I'm looking
forward to your findings.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top