Sitecore 5.0 API

State.Profiling Property

Gets or sets a boolean that indicates if profiling data are generated.

[Visual Basic]
Public Shared Property Profiling As Boolean
[C#]
public static bool Profiling {get; set;}

Property Value

True, if DebugMode is true and profiling is enabled, otherwise false.

Remarks

When profiling the web engine times each rendering. This information is available on the Sitecore debug pages "http://www.mysite.net/sitecore/debug".

Profiling can only be enabled if DebugMode is true.

The scope of the value is session and it is stored in the Session variable "SC_PROFILING".

See Also

State Class | Sitecore.Configuration Namespace | Tracing