<appDomainResourceMonitoring> Element
Instructs the runtime to collect statistics on all application domains in the process for the life of the process.
<runtime> Element
<appDomainResourceMonitoring> Element
<appDomainResourceMonitoring enabled="true|false"/>
The following sections describe attributes, child elements, and parent elements.
Attributes
|
Attribute |
Description |
|---|---|
|
enabled |
Required attribute. Specifies whether the runtime collects statistics for application domain resource monitoring. |
enabled Attribute
|
Value |
Description |
|---|---|
|
true |
Statistics for application domain resource monitoring are collected. |
|
false |
Statistics for application domain resource monitoring are not collected. |
Child Elements
None.
Parent Elements
|
Element |
Description |
|---|---|
|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
|
runtime |
Contains information about assembly binding and garbage collection. |
Application domain resource monitoring is available through the managed application domain class, the hosting ICLRAppDomainResourceMonitor interface, and event tracing for Windows (ETW). When monitoring is enabled, statistics are collected for all application domains in the process for the life of the process.
To enable monitoring from managed code, use the MonitoringIsEnabled property.
This configuration element is available only in the .NET Framework version 4 and later.