SPMonitoredScope members
Monitors performance and resource use for a specified scoped block of code.
The SPMonitoredScope type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
SPMonitoredScope(String) | Creates a new instance of a monitor and associates the monitor with a given scope. |
![]() |
SPMonitoredScope(String, TraceSeverity, []) | Creates a set of monitors and initializes them for use with a given scope using a specified friendly name and to monitor the provided scope for a given trace severity. |
![]() |
SPMonitoredScope(String, UInt32, []) | Creates a set of monitors and initializes them for use with a given scope using a specified friendly name and for a given duration of operation. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
Children | |
![]() ![]() |
Current | Gets the scoped segment of code that is currently being monitored. |
![]() |
Id | |
![]() |
IsDeveloperDashboardEnabled | Keep track of dev dashboard enabled information. This is useful when we are in a thread cannot get HttpContext |
![]() |
Monitors | Gets the monitors that are associated with a given scope. |
![]() |
Name | Gets or sets the friendly name for a given scoped block of code. |
![]() |
Parent | |
![]() |
ParentScopeId | The parent scope id for the current scope. If there is no parent, this will return -1 |
![]() |
ScopeId | This is a unique id for a monitored scope inside a correlation id. Since one correlation id can have multiple requests. The scope can also have duplicated names and can be across several different machine. We need a unique id to identify the scope. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
AddMonitor<T> | Adds a new monitor for this scope. |
![]() |
Dispose() | Stops all counters/timers for the current scope and any child scopes that have not been disposed yet. |
![]() |
Dispose(Boolean) | |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetMonitor<T> | Retrieves the monitor of the specified type from the current scope. |
![]() |
GetMonitorRecursive<T> | Gets the monitor from this scope of the specified type. |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
OnDisposing | Releases all monitors and then calls methods to log monitoring statistics and to set the previous scope to the current scope. |
![]() |
ToString | (Inherited from Object.) |
Top